How to Enable Piped Logging in Apache

October 8, 2020 Liquid Web

This video is part of a series of articles related to Apache Performance Tuning.

Apache by default logs data directly to log files. While this isn’t a bad thing, it is not your only option. Both Apache 1.x and Apache 2.x bring with them the option of enabling something called “Piped Logging”, though cPanel will only allow you to enable it for version 2.x.

Piped logging is extremely powerful when used correctly, and has far more flexibility than what we are using here. 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.

In this video, we will demonstrate how to enable piped logging in Apache.

Commands used:
cp /usr/local/apache/conf/httpd.conf{,.prepipedlogging} 

Next, log into WHM, and follow this sequence to the following location:

1. Service Configuration >> Apache Configuration >> Piped Log Configuration
2. Enable piped Apache logging, save it and let it rebuild the configuration.

Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our <a href="https://www.liquidweb.com/blog">newsletter</a> to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
MySQL Performance: How To Leverage MySQL Database Indexing
MySQL Performance: How To Leverage MySQL Database Indexing

In this video, we demonstrate how to do leverage MySQL database indexing.

Next Video
Apache Performance Tuning: Swap Memory
Apache Performance Tuning: Swap Memory

In this video, we will demonstrate how to preform fine tuning on an Apache server to avoid thrashing.

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now