#CheckoutCrypto's Drupal, Apache, Site
##Install There are two methods of install
- Git(below)
- Docker CheckoutCrypto Stack instructions
###Prerequisite repositories:
###Git Procedure git clone site module, copy contents(modules, themes and .git folder) to a fresh drupal site root path at /var/www/yoursite/sites/all
cd /var/www/yoursite/sites/all && git submodule init && git submodule update
Login to your drupal site as administraitor, visit the admin->modules menu, enable all checkoutcrypto modules except:
####Enable
- Account, Admin, Balance, Coins, Groups, OTP, Wallets, Trading, Transactions, Worker
####Ignore / View and develop
- Hosting(under development), Send payment by email(under development), cgPopup (a ctools modal example module, created by me for developers), service payments.
#####Modifications for your API URL
You need to modify the ccAccount module's API connection (it's done automatically in docker build, not git).
$base_url = '';
to your API host's IP address.
###Drupal installation Site files located at /var/www/html/site - includes all necessary modules, submodules and repositories.
Follow at Step 4 of Drupal Install Guide, as settings.php is prefilled by site docker image. All you need to do is visit http://localhost:83/site/install.php (or whichever port you selected), continue with the admin and site setup.
##CheckoutCrypto + Modules The last steps are to: enable the correct modules(Most of CheckoutCrypto, Ctools, Jquery_update, etc), theme(CheckoutCrypto), adjust the module blocks.
##Post-installation
- enable all modules, fix configurations e.g. smtp, site config, theme settings, blocks, etc.
2)enable Mod_rewrite:
sudo a2enmod rewrite
sudo service apache2 restart
-
go to admin -> configuration -> clean urls, hit the check for enable cleanurls;
-
You need to add all coins to the ccdev_coins table(site's Coins page). Add each coin's RPC config data to offline worker cache menu(worker option 2).
-
You need to add a "default" type group to the ccdev_groups table.
-
You need to select a user for use as a "hot wallet", you need to get that userid from the users table, copy it to the api configuration (api/config/ccapiconfig.php, within api repository).
see site documentation or development doc
###API
- cd /var/www/ && git clone https://github.com/CheckoutCrypto/crypto-api.git && sudo chown ccuser:ccuser ./api -R
- cd ./api && git submodule init && git submodule update
- cd /var/www/api/config/ && gedit ./dbconfig.php add your drupal database and username/password
- gedit ./ccapiconfig.php set the worker port, address, apikey, hotwallet.
###Worker
- git clone from repo
- cd ./worker && qmake && make
- run with ./workServer
- create/copy service to /etc/init.d/worker
- sudo /usr/sbin/update-rc.d worker defaults (to set it to start on restart)
see Worker Docs
##Client Platforms See Drupal Wordpress OpenCart CheckoutCrypto repositories
###Instructions for any given crypto daemon
- git clone daemon's repo
- install all dependencies
- cd ./anycoin/src ./configure && make
- configure nano ~/.anycoin/anycoin.conf ensure rpcuser and pass are unique and save add rpcallowip=10.0.0.1 or w.e your ip
- add daemon service linked to daemon binary in /etc/init.d
- make service start on restart sudo /usr/sbin/update-rc.d anycoin defaults
- start coin and ensure rpc connection to local network
###Additional notes: Get all the validation codes, for the ccdev_coins table, by inserting any address here
##Contributing See CONTRIBUTING
Grant Hutchinson
##License Licensed under the Apache 2.0 License, with one small reservation.