Hosting Faucet
Installation
This faucet runs on a Linux environment with PHP and MYSQL, and was tested on Ubuntu 15.04 with PHP 5.6.4 and MariaDB 5.5.
The faucet is set to work on the same server as the Qwertycoin wallet and Qwertycoin daemon.
Clone the repository
The first step is to clone the Qwertycoin faucet repository.
Configuration
Create a database
Next you will need to create a new database and create this table on it for the faucet to save all requests:
Edit the config.php
file
config.php
fileAfter you create your database you will need to edit the config.php
file with all your custom parameters and database information.
Install and run Qwertycoin daemon and simplewallet
The Qwertycoin faucet requires that you run qwertycoind and simplewallet. You can find the precompiled Qwertycoin binaries here.
Once it is downloaded you can start the Qwertycoin daemon like so:
Now start simplewallet and follow the steps to create a wallet. Make sure to write down your private keys and store them in a safe place.
For the faucet to be able to communicate with the Qwertycoin wallet, you need to run simplewallet like so:
Note: Run this command after you have already created a wallet.
wallet.bin
needs to be the wallet file name that you enter when you created your wallet.password
needs to be the password to open your walletrpc-bind-port
andrpc-bind-ip
can be changed if so, you need to edit index.php and request.php (Please don't edit, as you may end up opening the wallet rpc to the public)
To keep qwertycoind and simplewallet running in the background you can use the screen
command.
Running Ads (optional)
Advertisements can be edited in the index.php
file. They are between these lines for an easy location:
After all these steps you should be ready to go.
Last updated