Accessing Website Stats without logging into cPanel

Accessing AWStats Outside of cPanel

Accessing AWStats from outside the control panel is easy.

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

Step 2. Uncompress awstats-5.6.tgz.

Step 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).

Step 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.

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

Step 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.

Step 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).
  • PICK Important: — Change DirData to use the same statistics file as cPanel AWStats and do not lose any entry (DirData="/home/user/tmp/awstats/").

Step 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 all! AWStats will refresh the statistics every 24 hours.

 


Yannick Arrimadas Bot info@sauronz.com www.sauronz.com

Article from:
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AllFAQ/UserSubmitted
  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

I've forgotten my cPanel login. What do I do?

If you cannot remember your server login information, please submit a ticket with our staff and...

My Website Statistics have not Updated

Typically your web sites statistics are updated overnight. Occasionally, if the server has been...

How can I enable Mod_Rewrite?

Recommended for Advanced Users Only What is mod_rewrite? This module provides a...

Activate your cPanel License Key

Login to your server VIA SSH and run: /usr/local/cpanel/cpkeycltThat will update your key to...

How do I access my clients' cPanel account?

Resellers can access their clients' control panel to make changes simply by substituting the...