update readme (database)

This commit is contained in:
Tanguy Pruvot 2015-07-23 10:10:20 +02:00
parent deeccfe011
commit 3300420e58

View file

@ -2,7 +2,7 @@
Required:
linux, mysql, php, memcached
linux, mysql, php, memcached, a webserver (lighttpd or nginx recommended)
Config for nginx:
@ -45,6 +45,14 @@ If you use lighttpd, use the following config:
}
For the database, import the initial dump present in the sql/ folder
Then, apply the migration scripts to be in sync with the current git, they are sorted by date of change.
Your database need at least 2 users, one for the web site (php) and one for the stratum connections (password set in config/algo.conf).
The recommended install folder for the stratum engine is /var/stratum. Copy all the .conf files, run.sh, the stratum binary and the blocknotify binary to this folder.
Some scripts are expecting the web folder to be /var/web. You can use directory symlinks...
@ -57,7 +65,7 @@ Add your exchange API public and secret keys in these two separated files:
You can find sample config files in web/serverconfig.sample.php and web/keys.sample.php
This web application includes some command line tools, add bin/ folder to your path and type "yiic" to list them, "yiic checkup can help to test your initial setup".
This web application includes some command line tools, add bin/ folder to your path and type "yiic" to list them, "yiic checkup can help to test your initial setup". Future script and maybe the "cron" threads will then use the yiic console interface.
You need at least three backend shells (in screen) running these scripts:
@ -77,7 +85,7 @@ All your coin's config files need to blocknotify their corresponding stratum usi
blocknotify=/var/stratum/blocknotify yaamp.com:port coinid %s
On the website, go to http://server.com/site/admintest to login as admin. You have to change it to something different in the code (web/yaamp/modules/site/SiteController.php).
On the website, go to http://server.com/site/adminRights to login as admin. You have to change it to something different in the code (web/yaamp/modules/site/SiteController.php). A real admin login may be added later...
There are logs generated in the /var/stratum folder and /var/log/stratum/debug.log for the php log.
@ -89,3 +97,8 @@ There a lot of unused code in the php branch. Lot come from other projects I wor
http://www.yiiframework.com/
Credits:
Thanks to globalzon to have released the initial Yaamp source code.