How to update AWStats on cPanel server
AWStats is a free powerful graphical tool which generates advanced web, streaming, ftp or mail server statistics. This log analyzer works as a CGI or from the command line and shows you all possible information your log contains, in few graphical web pages.
Awstats not working /updating – CPanel
There might be several reasons for your AWStats to stop working but let’s find here how you can restore the functionality on your VPS/Dedicated box with a few easy steps.
The first thing you need to check is awstats.pl permissions and make sure that apache has permission to execute the AWStats, so please check this :
/usr/local/cpanel/3rdparty/bin/awstats.pl, permissions should be 755
Then to update awstats and webalizer run the script
/scripts/runweblogs cPanel_Account_USR
If that doesn’t work you can try the fixwebalizer script
/scripts/fixwebalizer
If that doesn’t update stats, then check domlogs of the domain and see if it is up to date. You can use the following script to run statistics
/scripts/runstatsonce
If none of the above fixes the issue and the awstats page for the domain is still showing the old date for last update, run the following command
/usr/bin/perl /usr/local/cpanel/3rdparty/bin/awstats.pl -config=/home/user_name/tmp/awstats/awstats.yourdomain.com.conf -LogFile=/usr/local/apache/domlogs/yourdomain.com -update
Replace yourdomain.com with your domain name and replace user_name with your cPanel username.
Leave a Reply