[WHP1.12] Why aren't my AWStats or Webalizer stats pages updating / working?

The stats are automatically updated when you visit the correct URL. That is, the URL must not specify a specific file name.

For instance, if your domain is example.com and AWStats/Webalizer were installed in the stats directory (under public_html), then the URL to use would be

http://example.com/stats/

and not

http://example.com/stats/awstats.pl

If you are still having problems, then you can manually perform an update of the stats. You may need to do this on a particularly busy website, where the stats haven't been visited in some time.

SSH method:
You will need secure shell access enabled on the hosting package for this method.
Log in to SSH
Move into the correct directory (eg cd ~/public_html/stats)
AWStats: Run ./awstats.pl -config=example.com -update
Webalizer: Run ./webalizer -D dns.cache -n example.com ~/logs/*access_log
(remember to change example.com to your domain name)

Scheduled Task method:
This will automate the updating so you don't need to run anything manually, and doesn't need secure shell access.
Access your Hosting cPanel v7.5 Control Panel
Click the Scheduled Tasks icon under Web Tools
In The Run this command box, enter:
AWStats (Linux): /home/sites/example.com/public_html/stats/awstats.pl -config=example.com -update
Webalizer (Linux): /usr/bin/webalizer -D dns.cache -n example.com /home/sites/example.com/logs/example.com-access_log*"
AWStats (Windows): C:\Perl\bin\perl.exe D:\sites\example.com\public_html\awstats\awstats.pl -config=awstats.conf -update
Set the scheduled time to something sensible, such as every day at 4am (select 4am under Hour)
(remember to change example.com to your domain name, and ~/public_html/stats to the actual path the stats are installed at)
Currently Webalizer scheduled updating is unsupported on the windows hosting platform



Please note that if AWStats was installed before 26th October 2008, you will need to reinstall the package if you want to use the Scheduled Task method - as this has only recently been supported.

Was this answer helpful?

 Print this Article

Also Read

[WHP1.04] I can't see the images on my website. Why?

There are several possible reasons why your images are not showing up on your pages as...

[WHP1.16] Possible issues with OSCommerce and MySQL5

We have been made aware that some customers may have issues with their OSCommerce installations...

[WHP1.18] Why is my scheduled task (CRON job) not running?

If the scheduled task did not run check the following before contacting support.1) The file...

[WHP1.17] Scripts on my old server ran under permission 777 but I have so many files to alter. Is there an easy way of doing this?

We do not allow scripts to run under 777 for reasons of security. Executable scripts should run...

[WHP1.15] File Manager session expiry errors

In order to keep your files secure against various threats, File Manager requires that your...