Are you frustrated with AWStats not updating automatically?
You are getting this error mainly due to some incorrect file permissions, configuration errors and so on.
At Bobcares, we often receive requests to solve AWStats errors as part of our Server Management Services.
Today, let’s have a detailed discussion on this error and see how our Support Engineers fix it.
Knowing more about AWStats not updating
Before getting into the error, let’s have a quick look at AWStats.
AWStats or Advances Web Statistics is a powerful log analyzer. It creates advanced web, FTP, mail, and streaming server statistics reports.
It updates regularly, typically daily, and provides excellent graphical representation for easy understanding.
But, sometimes it shows error and does not update automatically. Then, we will be forced to update them manually, which is quite troublesome.
These stats have an important role in business decisions regarding the website. Therefore, let’s check how we can resolve this error quickly.
How to fix AWStats not updating
Recently, one of our customers approached us with an AWStats error. His AWStats failed to update automatically.
As we have already said, the statistics shown in AWStats come from different log files.
And, AWStats doesn’t update automatically if there are issues with the permissions of these log files, configuration errors, etc. This applies to servers based on control panels like cPanel, Plesk, etc.
Let’s check how our Support Engineers fix these errors efficiently.
1. From terminal
To check the error in detail, we first SSH to the server as root. And, then we change the directory to:
/home/user/tmp/awstats
This location contains the configuration files for the domains under a particular cPanel account.
So, in order to avoid this error, we need to make sure that the directive “AllowToUpdateStatsFromBrowser” is set to 1.
#grep AllowToUpdateStatsFromBrowser awstats.domain.com.conf
# Warning: If you want to be able to use the "AllowToUpdateStatsFromBrowser"
AllowToUpdateStatsFromBrowser=1
Similarly, in cPanel servers, it is also important to check the permission of /usr/local/cpanel/3rdparty/bin/awstats.pl*. It must be 775.
To initiate the stats update of a particular user, we run the command:
/scripts/runweblogs username
This will resolve the error and then on AWStats will update automatically.
2. Via WHM Panel
Processing the AWStats option through WHM will also resolve this error. This comes handy when there are statistis problem with specific users. With root access, we follow the below commands:
- Firstly, log in to the WHM.
- Then, navigate to Server Configuration>> Statistics Software Configuration.
- After that, we select the user at the option Process Statistics for User.
- Click Go.
Once the stats are processed again, we recommend to check the same via Awstats panel and confirm everything is working fine.
[Need more help to fix AWStats?- We’re available 24/7 to help you.]
Conclusion
In short, AWStats not updating error occurs due to some incorrect file permissions, configuration errors, etc. In today’s write-up, we discussed this error and saw how our Support Engineers fix it for our customers.
0 Comments