cPanel - Stats not Generating

Posted by Jason Web Hosting Thursday 30 October 2008 7:22 pm

If no stats stats are generating for any of the domains on your server, make sure you have the LogFormat lines added in your Apache configuration file. The LogFormat lines will tell where the log files should be stored and in what format. Following are the changes has to be made in the Apache configuration file. Edit the file (httpd.conf) and search the line: ErrorLog /usr/local/apache/logs/error_log
and add the following lines below it:

LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\”" combined
LogFormat “%h %l %u %t \”%r\” %>s %b” common
LogFormat “%{Referer}i -> %U” referer
LogFormat “%{User-agent}i” agent

Save the file and execute the below commands for the new changes to take effect:

/usr/local/cpanel/bin/apache_conf_distiller –update
/usr/local/cpanel/bin/build_apache_conf
/etc/init.d/apache restart

Leave a Reply

You must be logged in to post a comment.

Categories

Archives

Web Hosting Blogroll