cPanel AWStats is Not Updating Automatically

0
8922

AWStats is one of the most commonly using cPanel tool to analyse website traffic summary. You can analyse a lot of things from here like Number of visits, Pages, Hits, Bandwidth etc. In some strange situations, you may get this problem with AWStats, it’s not updating automatically. There are a lot of reasons behind this problem including file permission. Here I’m listing some points to check if you got this 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.

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@tsting [/home/****/tmp/awstats]# grep AllowToUpdateStatsFromBrowser awstats.servernoobs.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

Originally posted 2016-02-07 20:25:11.

LEAVE A REPLY

Please enter your comment!
Please enter your name here