Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The error log file was quite big so I deleted it and created it again.. But now the error log is not logging/updating on errors?

Have tried to respart apache, but still the same..

I remember I experienced this a while ago.. Can't remember how it was fixed?

share|improve this question
up vote 5 down vote accepted

Apache keeps its log files open so deleting a log file stops apache from logging to it, since the old file descriptor now points to a deleted inode.

You should rotate/delete/truncate the log file, re-create it with the correct ownership and permissions, and then issue an apachectl graceful to reload.

Alternatively, apache can log errors to syslog; this does not suffer from the same limitations.

share|improve this answer

Alternatively, you may want to use rotatelogs to constrain size/age of your httpd logs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.