Knowledgebase: Site Functions
Enable AWStats Updating in cPanel
Posted by H9 Admin on 13 January 2015 04:16 PM

Processing stats and logs is resource-intensive. Sometimes, if the processor load is high or if there is too much memory usage, the virtualization software will kill off a running process to keep your VPS within it's resource limits.

Updating Manually

You can use SSH to update the stats by issuing the following command ('[username]' is the cPanel username you wish to update):

/scripts/runweblogs [username]]

Updating Through cPanel

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

  1. Log into WHM

  2. Click Server Configurations, then Tweak Settings

  3. Scroll down to Stats and Logs and check the box "Allow users to update AWStats from cPanel"

The Update Now link in AWStats will be available now, located at the top next to Last Update. However, it may not show immediately. You may need to manually run the stats using the Updating Manually instructions above. You can also verify that the setting is actually enabled by checking the AWStats Configuration File for a particular user:

  1. Login via SSH as root

  2. cd '/hometmp/awstats'

  3. grep 'AllowToUpdateStatsFromBrowser'
    Note: it should be set to AllowToUpdateStatsFromBrowser=1. If not, edit the file and save.

  4. Restart cPanel: service cpanel restart


See also SSH Access InfoLog Into WHMChange AWStats Config File in cPanel

(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
Help Desk Software by Kayako fusion