Page 1 of 1

AWStats is not updating automatically-cPanel

Posted: Thu May 31, 2018 6:08 pm
by _tommy
Hi Nix,

AWStats, it's not getting updated automatically on the web UI (cPanel >> AWStats). What can be the issue ?

Re: AWStats is not updating automatically-cPanel

Posted: Thu May 31, 2018 6:20 pm
by shaan
Hi Tommy,

There can be a lot of reasons behind this issue. Go through below steps and check the followings.

1. SSH to server as root.

2. Change the directory to /home/user/tmp/awstats
# cd /home/user/tmp/awstats

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

4. Run below command:

# grep AllowToUpdateStatsFromBrowser awstats.domain.com.conf

Sample command output:

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

5. 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*

6. If the above ones are all verified, try running below command as root user to update AWStats manually.

/scripts/runweblogs $user-name

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

8. More options can be viewed from WHM (Home »Server Configuration »Statistics Software Configuration)


Shaan N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree

Re: AWStats is not updating automatically-cPanel

Posted: Thu May 31, 2018 6:25 pm
by Lisa Jacob
Hi Nixtree,

I too had the same issue. On checking, I found 'AllowToUpdateStatsFromBrowser' was set to 0. I have corrected it to 1 and run the command '/scripts/runweblogs $user-name to update the AWStats.

Re: AWStats is not updating automatically-cPanel

Posted: Thu May 31, 2018 6:27 pm
by shaan
Hi Lisa,

We are glad to know that the issue has been solved for you.

Keep posting your doubts and we are here to help you.


Shaan N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree