How to fix a Slow Apache Server on dedicated servers ?
Server Issue Information
If you are using an Apache server for your dedicated hosting environment, a common problem is a slow server. You have to understand how an Apache server handles the logs- the log files in this type of server are set rotate the logs. But if due to reason this rotation is interrupted, it causes server slow down. If the size of the log files keeps increasing and getting heavier, the server slows down as it needs more time to process and write these files to memory. At any point if the size of the log file goes beyond 1GB, the server speed is critically affected.
Solution
To resolve this, check the logs in /etc/httpd/logs. If you use cPanel, you should check /etc/httpd/domlogs.
They should be set to ‘logrotate’
logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.