Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to access Website stats without login to cPanel?  (Read 5017 times)

0 Members and 1 Guest are viewing this topic.

lijeshk

  • Guest
How to access Website stats without login to cPanel?
« on: December 02, 2013, 06:16:45 am »

We can access AWStats from outside cPanel by follow the given bellow steps:

1. Download AWStats from http://awstats.sourceforge.net.

2. Uncompress awstats-5.6.tgz.

3. Copy the contents of the uncompressed cgi-bin folder from your hard drive to the user cgi-bin directory
(this includes awstats.pl, awstats.model.conf, and the lang, lib and plugins subdirectories).

4. If necessary (this should not be needed with most setups), edit the first (top-most) line of the awstats.pl file that is #!/usr/bin/perl to reflect the path were your Perl interpreter is installed. The default value works for most of the Unix OS, but it also might be #!/usr/local/bin/perl.

5. Move AWStats' icon subdirectories and its content into a directory readable by your web server, such as /home/users/public_html/icons.

6. Copy the awstats.model.conf file into a new file named awstats.myvirtualhostname.conf. This new file must be stored in /home/user/public_html/cgi-bin.

7. Edit this new config file with your own setup:
  • Change the LogFile value to the full path of your web server's log file. (The path is: LogFile="/usr/local/apache/domlogs/domain.com", where domain.com stands for your domain name.)
  • Check to see whether LogFormat has the value 1 (it means "NCSA Apache combined/ELF/XLF log format").
  • Change the DirIcons parameter to reflect the relative path of the icon directory.(DirIcons="/icons")
  • Edit the SiteDomain parameter to include the main domain name or the Intranet web server name used to reach the website to analyze (example: www.mydomain.com).
Important:- Change DirData to use the same statistics file as cPanel AWStats and do not lose any entry (DirData="/home/user/tmp/awstats/").

8. Access AWStats at the URL www.domain.com/cgi-bin/awstats.pl?config=domain.com, where domain.com stands for your domain name.

That's it.. AWStats will refresh the statistics every 24 hours.

Reference: http://docs.cpanel.net
--


 :)