Server Administration & Management

How to enable AWStats updating from cPanel

How to enable AWStats updating from cPanel

Sometimes, it may be easier to just enable your cPanel user accounts to update manually.

Login to WHM, then select Server Configuration -> Tweak Settings.
Scroll down to Stats and Logs.
Check the box “Allow users to update Awstats from cPanel”

Sometimes, it happens that Awstats are not getting updated for a domain in cPanel.
In such cases, it is better idea to put up “Update now” button for user to update Awstats on demand.

You can perform this by following below steps:

1. Login to your server via SSH as root
2. cd /home/username/tmp/awstats/
3. Edit awstats config file of domain. For example awstats.domain.com.conf using following command:

vi awstats.domain.com.conf

4. Search for ”AllowToUpdateStatsFromBrowser”.
5. Assign the value “1” as shown below:

AllowToUpdateStatsFromBrowser= 1

6. Save the file and exit.

Just refresh the statistics page and you will see “update now” button on the top of the page.


January 2, 2011 Posted by | cPanel | , , | 1 Comment