AWStats not updating automatically – cPanel

How should I fix this? AWStats is not updating here.

AWStats is one of the most commonly using tool on cPanel servers to analyse website traffic summary. Also, you can analyse a lot of things from there like number of visits, pages, hits, Bandwidth etc. In some strange situations, you may get this problem with AWStats, it’s not get updating automatically on the web UI (cPanel >> AWStats). There are a lot of reasons behind this problem including file permissions itself. Here I’m listing some points to remember, if you got the problem with AWStats.

How to access AWStats?

You can simply access and analyse this from the cPanel itself. Please do follow the steps:

1, Log into cPanel.
2, Move to;

Logs >> AWStats

That’s it.

awstats-logo

How to update AWStats manually?

Yes, if it’s not updating automatically then you can update it manually. You can done this from the cPanel and also from the command line. You must have root access to server for updating AWStats via SSH. Here is the script;

1, SSH to server as root.
2, Execute;

/scripts/runweblogs $user-name

In the AWStats page there is an option to update it manually.

Why AWStats is not updating automatically?

There are a lot of reasons behind this. You have to check the following this via shell as root user.

1, SSH to server as root.
2, Change the directory to:

/home/user/tmp/awstats

There are the conf files for domains under that particular cPanel account. We need to make sure that the directive “AllowToUpdateStatsFromBrowser” is set to 1.

grep AllowToUpdateStatsFromBrowser awstats.example.com.conf

Example:

root@server [/home/cool/tmp/awstats]# grep AllowToUpdateStatsFromBrowser awstats.crybit.com.conf
# Warning: If you want to be able to use the "AllowToUpdateStatsFromBrowser"
AllowToUpdateStatsFromBrowser=1

Also please check the permission of “/usr/local/cpanel/3rdparty/bin/awstats.pl” file. It must be 775.

# ll /usr/local/cpanel/3rdparty/bin/awstats.pl
-rwxrwxr-x. 1 root root 679172 Aug 23  2009 /usr/local/cpanel/3rdparty/bin/awstats.pl*

You can find more option from the WHM panel;

Home » Server Configuration » Statistics Software Configuration

Check the options are properly enabled from there.

That’s it!

Also read;

1, How to restart the service Spamd – cPanel
2, How to change main domain of a cPanel reseller account with an existing domain name?
3, The XCache – Simple way to install Xcache from source code

,

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

Leave a Reply

Your email address will not be published. Required fields are marked *