Apache won’t start nothing in the logs

Chance are, if apache isn’t starting and isn’t logging anything, the error_log is full preventing apache from starting. To double check that, run:

cd /var/log/httpd
ls -lS | less

If any file is around 2-3 gig (or more), then chances are, that’s the problem.

The solution is to remove the logs, restart apache, and then implement preventative measures.

Get logrota to rotate daily.

# see “man logrotate” for details
# rotate log files daily
daily

# keep 2 weeks worth of backlogs
rotate 2

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.