Sunday, January 30, 2011

Enable awstats

Awstats and webalizer are great web stats & logging tools provided in CPanel. You can enable them this way:

http://www.programmerfish.com//wp-content/uploads/2008/12/image15.png

Login to your CPanel and in the Logs box click on Choose Log Programs

http://www.programmerfish.com//wp-content/uploads/2008/12/image16.png

Then Check the awstats checkbox if you want to enable Awstats and check webalizer checkbox if you want to enable Webalizer for the domain … and click SAVE CHANGES button.

It will take 24 to 48 hours before you can start checking your web stats.


OR




Updating Through 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"

If The Link Doesn't Appear

The link for "Update Now" in AWStats will be 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 /home/username/tmp/awstats
3. grep AllowToUpdateStatsFromBrowser awstats.example.com.conf
4. It should be set to AllowToUpdateStatsFromBrowser=1
5. If not, edit the file and save.
6. restart cpanel : service cpanel restart

No comments:

Post a Comment