Apache httpd failed to restart

Jeffrey Larson

Today I went to restart my apache web server and it failed. The following message were in the error_log

[Wed Oct 11 10:41:04 2006] [notice] SELinux policy enabled; httpd running as context user_u:system_r:httpd_t
[Wed Oct 11 10:41:04 2006] [crit] (28) No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed

After some troubleshooting with the help of Brenton, I googled the [crit] message and came up with this page: http://www.goldfisch.at/knowledge/224.

So after running the following command apache started up:
ipcs -s | grep apache | perl -e 'while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}'

I supposed I should try and figure out what cause the problem in the first place… maybe some application or script has a memory leak.

Leave a Reply