Loading...

Knowledge Base
Categories:

Enabling AWStats Updating from cPanel

Share

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 in to 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 awstats.example.com.conf'
    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 InfoLogging Into WHMStatistics for Your SiteChange AWStats Config File in cPanel

Did you find this article helpful?

 
* Your feedback is too short

Loading...