If you have CGMiner installed for your litecoin mining then you may of noticed a file called miner.php found in the root folder.
This will allow you to monitor your server over the internet remotely whenever you wish.
You do need to take a few steps first to get this working though. This method is for those who are using Linux. I am running XUbuntu
sudo apt-get install apache2
Install PHP & MYSQL
sudo apt-get install php5
sudo apt-get install php5-mysql
sudo apt-get install libapache2-mod-php5
Now you need to restart Apache. You need to do this for it to work
sudo /etc/init.d/apache2 restart
To test Apache is working point your web browser to
If you read “It works! then your Apache is working ok
Open up miner.php found in your CGMiner root directory in your editor
Now make the following changes
$readonly = true; # A good idea if this is purely for monitoring
$autorefresh = 30; # This enables automatic refresh
Now save the file as miner.php
The next step is to copy miner.php from your CGMiner folder
Copy this file into /var/www/
Start CGMiner ensuring you add the following switches –api-listen and –api-network to be able to talk to the webpage
Check CGMiner is running with ps -ef|grep cgminer
Then open up
http://localhost/miner.php in your web browser
Now hopefully this should show your realtime stats for CGMiner.
You can then setup your router to allow remote access from anywhere
using your Internet IP address.