Many of you may or may not know that when awstats runs it can and often does cause an extremely high load.
The good news is I found the problems and know the fix but Cpanel keeps overwriting them and there doesn't seem to be a mass way to update all users at once.
First Permission problems with the Domlogs to allow for purging when run by the users who update frequently and if you as host allow them to update via the browser.
/usr/local/apache/domlogs/*.com These files need to have permissions to run from a CGI script if that option is enabled.
/home/USER/tmp/awstats/awstats.USER.COM.conf
PurgeLogFile=1 Its way down at the bottom of the config file in the optional section.
Basically what it does is prevent the server from having to read the 50,000 lines from the days and weeks before each time Awstats updates which is usually daily.
Awstat updates were causing my server to reach 100% load at times just processing the logs on high traffic sites.
I am not submitting a TT or feature to CPANEL if you one of you zealots wish to please do. This little small modification to the User files can save tons of midnight loads and file lock errors when too much gets going on while the stats program runs.



LinkBack URL
About LinkBacks
Reply With Quote




