Enable piped Apache logs

Piped logging is extremely powerful when used correctly, and has far more flexibility. The way it is described here, we will be attempting to negate the memory hungry apache processes that creep up when a server is hosting very low traffic websites (less than 1 request per second) with traditional Apache log configurations.

cat  /usr/local/apache/logs/error_log | grep Graceful
[Sun Jul 14 16:01:10 2013] [notice] Graceful restart requested, doing restart
[Sun Jul 14 18:14:40 2013] [notice] Graceful restart requested, doing restart
[Sun Jul 14 20:11:31 2013] [notice] Graceful restart requested, doing restart
[Sun Jul 14 21:16:42 2013] [notice] Graceful restart requested, doing restart

This error is caused due to log processing and its fixed after enabling piped Apache logs. This can be done by either of the following methods

You can enable piped logs via WHM using the following steps.

Backup your Apache configuration file

cp -r /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf_bak

WHM » Service Configuration » Apache Configuration » Piped Log Configuration

Check the box labeled Enable piped Apache logs.

Enable piped Apache logs via command line.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

cPHulk Brute Force Protection

WHM/cPanel has a service, protected from Brute Force attack, which is called “cPHulk Brute Force...

Enable SSH key authorized login without root password

You need to generate SSH Key ( the private key )on your cpanel server and then update remote...

How can I Redirect URLs in cPanel

Login your cpanel 1. Click the Redirects button on the front page under the “domains” 2. Enter...

Enable Custom php.ini for Fast CGI

With fast-cgi, custom php.ini needs to be in the cgi-bin folder. 1) Move php.ini to cgi-bin...

ConfigServer Firewall CSF installation

ConfigServer firewall is a popular linux firewall security suite. It is easy to install, flexible...

Powered by WHMCompleteSolution