How to view AwStats without logging into cPanel
Knowledgebase Article
}
Knowledgebase Article
If you are looking for a feature that will allow you to check AwStats without logging in into your cPanel account, we recommend you to tollow the tutorial below. This is also useful if you would like to allow such statistics to a webmaster, developer or a friend, without providing him with your cPanel login details. The steps to achieve this are provided below:
1) First of all, we will need to create a subdomain where AwStats will be displayed. The sub-domain can be of your choice, for example "stats.mydomain.com". You can create sub-domain for your domain by navigating to your cPanel -> Subdomains. Once your sub-domain is created, physical path of the virtual root for your subdomain will be automatically created. The path will be something like:
public_html/my-subdomain/
2) Step two of this tutorial is installing AwStats on the sub-domain. You can download the latest stable version of AwStats from the following link:
http://awstats.sourceforge.net/
Once the archive is downloaded, extract it on your PC and pload the extracted cgi-bin and icon folders into the virtual root of your domain. If you were installing AWStats into the public_html folder it should end up looking something like this once you have finished copying the files and directories:

In the uploaded cgi-bin directory, chmod the awredir.pl and awstats.pl files to 755.
3) Now, you will need to download a copy of your current cPanel AwStats config file, which can be accesssed from your home directory at:
/tmp/awstats/awstats.mydomain.conf
(Please note that you will need to replace "mydomain" with your actual domain).
Now, open to edit this file and find the line which begins with "Diricons":
DirIcons="/images/awstats"
You will need to replace this line with the following:
DirIcons="/icons"
4) Now, save the file and upload it to the cgi-bin directory, overwriting the existing one.
5) Once the AwStats are set to be publicly accessed, we strongly recommend limiting this page. You could easily setup a password protection for this sub-domain (folder) from your cPanel -> Files -> Directory Privacy:

5) Congratulations! You have successfully installed AWStats and now you will be able to access the statistics without having to login into cPanel. The stats can be accessed directly by a link:
http://www.mydomain.com/cgi-bin/awstats.pl?config=mydomain
(Please note that you will need to replace "mydomain" with your actual domain name).
Powered by WHMCompleteSolution