How to install faucet script php for Elicoin – yenten faucet script, suitable for any cryptonym (bitcoin, litecoin, doge, zcash, zcoin and other)
Today I will tell you how to install your own crane for the distribution of coins. It is suitable for almost any coin, tk. communicates with the wallet using the rpc protocol and just have it set up, put money in the wallet and watch how the attendance at the crane increases.
We will use the script of the faucet yenten-faucet script php - https://github.com/bubasik/yenten-faucet
The first step is to download the repository to an arbitrary folder
1 |
git clone https://github.com/bubasik/yenten-faucet.git |
Create a folder faucet in folder /var/web/ (here the default is set yiimp) and copy the crane script files there.
Trying to open a site name_site.com/faucet/ and see error 404, we need to configure nginx
In folder /etc/nginx/sites-available/ find conf file with your site (for example 123.123.123.123.conf)
and in the end before the last brackets “}” add the code
1 2 3 4 5 6 7 8 9 10 |
location /faucet { root /var/web/; index index.php; location ~ /faucet/(.+\.php)$ { fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; include snippets/fastcgi-php.conf; } } |
Restarting nginx
1 |
systemctl restart nginx |
Now the script opens in the browser, it remains only to configure the files:
In file index.php specify username and password from RPC purse and if you need to change the standard port 9982
In file faucet.php specify the secret key of the reaccess, login, password and port from the RPC purse. The minimum and maximum payout for the visitor’s wallet ($ min and $ max) and the maximum and minimum payout, if he repeatedly wants to make a payment to the same purse (variable $ min_2 and $ max_2).
Design, text and menu caps of rules in the file index.php, coin logo logo.png.
The script is simple, easy and convenient. There is a lock on the timeout of the wallets for which payments are made and ip addresses.
The site for the distribution of coins — http://elicoin-pool.ml/faucet/
please donate to Elicoin: EHHooM1nvHj7VTTwRWTMzvFrmALdjMyN8r