Readme file

——————————————
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’); 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/’);
define(‘HTTP_IMAGE’, ‘http://opencart.local/image/’);
define(‘HTTP_ADMIN’, ‘http://opencart.local/admin/’);

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

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

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

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

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/

Leave a comment