Thursday, September 1, 2016

Awstats not updating In cpanel server.


Introduction



AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. Sometimes it may not get updated. We can manually resolve this issue by some methods.



Requiremet



Requires root user privilage




Steps



Step 1: Login to server via SSH



Check permission of /usr/local/cpanel/3rdparty/bin/awstats.pl, it should be 755





Step 2: Execte following cPanel script command





- /scripts/runweblogs username , replace username with cPanel username




If the above command does not fx the issue, you can use another cPanel scripts.



- /scripts/fixwebalizer username



- /scripts/runstatsonce





Step 3: If none of the above steps works, we have to check whether domlog files are getting updated or not. Sometimes domlogs may not be get updated as it disabled in Apache configuration files. If it is disabled Awstat will not show updated informtaion. We can enable this by following method.



Open the apache conf with your favourate editor.



vi /usr/local/apache/conf/httpd.conf



Search for the line "ErrorLog /usr/local/apache/logs/error_log" and just below that add following lines.



LogFormat “%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”” combined

LogFormat “%{Referer}i -> %U” referer

LogFormat “%h %l %u %t “%r” %>s %b” common

LogFormat “%{User-agent}i” agent





Save the file


Run following command to distll Apache.



/usr/local/cpanel/bin/apache_conf_distiller –update


Restart Apache


/scripts/restartsrv_httpd

No comments:

Post a Comment