error: No space left on device: mod_rewrite: could not create rewrite_log_lock No space left on device: mod_rewrite: could not create rewrite_log_lock
When you see the error: No space left on device: mod_rewrite: could not create rewrite_log_lock No space left on device: mod_rewrite: could not create rewrite_log_lock in your Apache logs or when Apache fails to start, try the following; in your Apache logs or when Apache fails to start.
try the following:
Run:
# ipcs -s
If you see more than 5 of them, you may need to clear them with the following command;
Run:
# ipcs -s | perl -ane ‘/^0x00000000/ && `ipcrm -s $F[1]`’
Restart apache.
Run:
#/etc/init.d/httpd restart
April 22, 2010 at 7:36 am
You can also use following command to remove pids.
ipcs -s | grep nobody | perl -e ‘while () {@a=split(/\s+/); print `ipcrm sem $a[1]`}’
April 22, 2010 at 9:27 am
Thank you Nilesh for your suggestion 🙂