Customizing CryptoStore: Network & Emails

Following feedback items we’ve received:  

1. The default VM network is set to NAT which is not visible outside your host, this should be changed to “Bridged” for a production server.  

2. “Mail” should be the default option for Mail Protocol (not SMTP)

    Login as site admin, -> system -> Settings -> (site) Edit -> Mail -> Mail Protocol 

 

CrypoStore Download Links

CryptoStore V1.0 VMWare 5.0 part 1of2 .rar (4.6GB)

https://docs.google.com/file/d/0B7VHRdUVDyP1S1hrOTFNazVFb1U/edit?usp=sharing

CryptoStore V1.0 VMWare 5.0 part 2of2 .rar (3.9GB)

https://docs.google.com/file/d/0B6JbDVYqII6WX1ZYM3puWXlWMEU/edit?usp=sharing

Included Litecoin and Bitcoin blockchains were synchronized to Feb 9, 2013
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Torrents:
CryptoStore v1.0 Torrent Seed — (from SeedPeer.me):

http://www.seedpeer.me/details/5386353/Free-WebStore-CryptoStore-v1-0-OpenCart-LTC-BTC.html

CryptoStore v1.0 Torrent Seed — (from Google docs):

https://docs.google.com/file/d/0B7VHRdUVDyP1bFBuQnI0N1hKQUk/edit?usp=sharing

Readme file of CryptoStore V1.0

——————————————
PASSWORDS AND HOW TO CHANGE THEM
——————————————

Default Centos OS accounts:
root/bitcool
opencart/opencart

Account opencart have the website in home with litecoind and bitcoind client installed (bin and data subfolders)

If you want to change centos account password you’ll need to use “passwd”, so login as “root”, open a terminal wndow, and type:
# passwd
Then insert the new root password, and if you want to change the password for user opencart, type
# passwd opencart
of course, in both case without # ;)

——————————————

Default Mysql accounts:
root/mysqlrootpassowrd
opencart/opencart

DB used for site is “opencart” and user “opencart” have all privileges for this db

If you want to change mysql password, in a terminal session, type
$ mysql -uroot -p
then input root password (is “mysqlrootpassowrd”), and then type in mysql console

SET PASSWORD FOR root@localhost = PASSWORD(‘ROOTPASSWORDHERE’);
SET PASSWORD FOR opencart@localhost = PASSWORD(‘USERPASSWORDHERE’);
exit

!!!IMPORTANT!!!
If you change password for opencart user you must update mysql info in:
/home/opencart/public_html/config.php
and in:
/home/opencart/public_html/admin/config.php

define(‘DB_DRIVER’, ‘mysql’);
define(‘DB_HOSTNAME’, ‘localhost’);
define(‘DB_USERNAME’, ‘opencart’);
define(‘DB_PASSWORD’, ‘YOURNEWMYSQLPASSWORD’); <Payments->Litecoin->Edit)

——————————————

Bitcoin rpc account:
you can find it in /home/opencart/.bitcoin/bitcoin.conf

!!!IMPORTANT!!!
if you want to change it remember to shutdown bitcoind first, then modify and save the file, update access
data on opencart site in admin control panel (Extensions->Payments->Bitcoin->Edit)

————————————————————————————————————
—————————- Enabling Access From Outside VM ————————————
————————————————————————————————————

To enable OpenCart site being accessed from outside, within a LAN, the browser’s OS must know what IP the “opencart.local” server has.

- if you are on windows edit as administrator the file “C:\Windows\System32\drivers\etc\hosts” with notepad and add at the end of the file

192.168.183.188 opencart.local

- if you are on linux edis as root “/etc/hosts” and add at the end of the file

192.168.183.188 opencart.local

where 192.168.183.188 is an example of the LAN IP address of the virtual machine.
To find your virtual machine’s actual ip, in VM, open a terminal window and type in “ifconfig”, VM’s inet addr or inet6 addr will be listed. inet(ipv4) address is preferred at this moment.

Open this URL in your browser:
http://opencart.local (store front)
http://opencart.local/admin/ (admin control panel)

To open up your store to outside Internet, your router must be configured to do a port-forwarding and direct HTTP traffic to your VM.

If you don’t have staic IP, and you want to let yoru customer access your site via domain name, you can subscribe to one of those dynamic DNS service. Some of these services are free and reliable.

——————————————
Changing Server Name ———-
——————————————

Changing the server name of Webserver:
you can find webserver settings in /etc/httpd/conf/httpd.conf
at the end of this file you can find your site settings:

ServerAdmin webmaster@opencart.local
DocumentRoot /var/www/opencart
ServerName opencart.local
ErrorLog logs/opencart-error_log
CustomLog logs/opencart-access_log common

modify “ServerAdmin” with your valid email and “ServerName” with your dns (for example http://www.bitcool.com)
after you save the file remember to type “/etc/init.d/httpd restart” as root to apply your change

!!!IMPORTANT!!!
if you change ServerName you must update site info in /home/opencart/public_html/config.php and

// HTTP
define(‘HTTP_SERVER’, ‘http://opencart.local/&#8217;);
define(‘HTTP_IMAGE’, ‘http://opencart.local/image/&#8217;);
define(‘HTTP_ADMIN’, ‘http://opencart.local/admin/&#8217;);

// HTTPS
define(‘HTTPS_SERVER’, ‘http://opencart.local/&#8217;);
define(‘HTTPS_IMAGE’, ‘http://opencart.local/image/&#8217;);

and in /home/opencart/public_html/admin/config.php

// HTTP
define(‘HTTP_SERVER’, ‘http://opencart.local/admin/&#8217;);
define(‘HTTP_CATALOG’, ‘http://opencart.local/&#8217;);
define(‘HTTP_IMAGE’, ‘http://opencart.local/image/&#8217;);

// HTTPS
define(‘HTTPS_SERVER’, ‘http://opencart.local/admin/&#8217;);
define(‘HTTPS_CATALOG’, ‘http://opencart.local/&#8217;);
define(‘HTTPS_IMAGE’, ‘http://opencart.local/image/&#8217;);

just replace “opencart.local” with the value you use in “ServerName” (webserver config)

you can find webserver log files in “/etc/httpd/logs”

——————————————
Re-Generating Wallet Files —–
——————————————
Even though CryptoStore VM is shipped with fresh wallet files, it’s still recommended repeating and recreating new wallet files by following these steps:

WARNING: You’ll lose all coins in the existing wallet if there’s any.

* Login as “opencart” user, allow some time for (auto-started) Litecoin and Bitcoin to complete loading.
* Shutdown Litecoin and Bitcoin from -qt GUI: File ->Exit
* Open a terminal session
* type in command:
cd /home/opencart/.litecoin
or for Bitcoin:
cd /home/opencart/.bitcoin
* To copy/backup existing wallet, type in: (this is only needed if the wallet has been used for transactions)
cp wallet.dat /home/opencart/Desktop/old_wallet.data
* To delete the existing wallet, type in:
rm wallet.dat
* Restart -qt clinets by right-clicking on their desktop links -> Open.

——————————————
Guest OS (VM) Firewall:
You can find firewall rules in /etc/sysconfig/iptables
after modify this file remember to type “/etc/init.d/iptables restart” as root to apply your change

——————————————

For more information, visit

Forums: http://bitcointalk.org

http://forum.litecoin.net/index.php/topic,1027.0.html

Litecoin/OpenCart Payment Module:

https://github.com/live627/OpenCart_Litecoin

Bitcoin/OpenCart Payment Module:

https://github.com/btcgear/OpenCart_Bitcoin

Litecoin:

http://litecoin.org/

Bitcoin:

http://bitcoin.org/

Opencart:

http://www.opencart.com/

CryptoStore: Simple, Open Source Web Store Preserving Your Freedom

Ever dreamed of owning your very own web store and building your own business? Ever dreamed of being independent? Have you heard of the new Internet currency like Bitcoin and Litecoin? CryptoStore may be the answer. CryptoStore is a free, open source solution providing you the ultimate freedom of conducting honest business on the Internet.

CypoStore is a Virtual Appliance that greatly simplifies the process of setting up commercial web store with Litecoin and/or Bitcoin payment support. It’s supported by the open source community.

The goal of CryptoStore project is to allow users setup a fully customized, good quality web store within one hour or less.  

CryptoStore 1.0 is Released

Free and Freedom 

CryptoStore is a free, open source virtual appliance that greatly simplifies the process of setting up a commercial website with Litecoin and/or Bitcoin payment support.

CryptoStore is supported by the Bitcoin and Litecoin community. The goal of this project is to allow users setup a fully customized, good quality web store within one hour or less.  

CryptoStore is consisted of following components:

  1.    OpenCart 1.5.4
  2.    BitCoin 0.7.2-linux
  3.    LiteCoin 0.6.3c-linux
  4.    LTC/OC Payment module
  5.    BTC/OC Payment module
  6.    CentOS 6.3
  7.   VMWare Player 5.0.1 or higher to run the appliance

Disclaimer:
This CryptoStore virtual appliance software stack is based on open source components, provided to you without any explicit or implied guarantee, user assumes all risk factors associated with using the software.

System requirements:
1. VMWare Player 5.0.1 or higher
2. At least 2 GB of memory for running the VM.

Safety First:
1. Upon running the virtual appliance, before opening up the shop site to the world outside your firewall or router, site admin must follow the readme file (placed on “opencart” user’s desktop ) to change default passwords.
2. Litecoin and Bitcoin wallets of the CryptoStore are not intended to store large amount of coins, it’s strongly recommended you move coins out of the store wallets periodically.
3. To protect your data it’s recommended to backup your store data and virtual machine frequently.

Installation Steps: 

1. Download VMWare appliance, if it’s in compressed format (e.g. in .zip, .7z, .rar formats) unzip them to a directory.
2. Run the virtual machine, log into user “opencart” (password: opencart)
3. Follow the instructions in the readme file on opencart user’s desktop, and change passwords.
4. Make sure your VM can access to the Internet.
Every network is different, depending on many factors such as what type of network you use (usually it’s  Bridged or NAT), manually assigned IP or using DHCP, whether your router/switch allow mutliple devices per port, etc.
5. Litecoin/Bitcoin clients should automatically starts and try to synchronize the blockchain data.
– It may take a few minutes to a few hours for Litecoin blockchain to be up to date
– If may take days for Bitcoin blockchain data to become up to date.
Before the blockchain data are synchronized with the networks, LTC and BTC payment will not function properly.
6. While the blockchain data are being updated, you can get familiar with different components: Opencart/Apache Server, Litecoin client, Bitcoin client, OpenCart Store front, OpenCart admin console.
Use the admin console to customize your store information, modify product category, and update your product information.
7. Testing access from another machine on your LAN (Note: this machine’s host host file needs to be updated whenever VM’s IP changes, if DHCP is used)
8. Setting up port-forwarding in the router to allow access from outside your LAN
9. Setting up dynamic DNS service (if you don’t have static IP)

Once the blockchain downloads complete, your store is ready for business! Don’t forget to test often and minimize downtime, a reliable website is priority #1 for your online business.

Best Practice: 

  • To avoid file corruption, to power down the system, if possible, always shut down Litecoin/Bitcoin client first (File -> Exit), then shutdown VM guest OS. 
  • Always keep LTC or BTC blockchain in-sync, or the payment modules cannot work properly.  
  • If you have difficulty keeping the blockchain up to date,  which usually happens to BTC rather than LTC, you should disable the payment method while it’s catching up.