AWStats is not updating automatically-cPanel

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..
Post Reply
_tommy
Posts: 0
Joined: Fri Apr 13, 2018 7:12 pm

AWStats is not updating automatically-cPanel

Post by _tommy »

Hi Nix,

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



shaan
Posts: 0
Joined: Sat Apr 14, 2018 4:21 pm

Re: AWStats is not updating automatically-cPanel

Post 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



Lisa Jacob
Posts: 0
Joined: Thu Oct 27, 2016 12:04 am

Re: AWStats is not updating automatically-cPanel

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



shaan
Posts: 0
Joined: Sat Apr 14, 2018 4:21 pm

Re: AWStats is not updating automatically-cPanel

Post 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



Post Reply