The Apache server on my EC2 instance stopped suddenly and refuses to restart. Repeating in the error log is this misleading error:
(28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
Configuration Failed
A quick check with df -h and repquota -v indicates that there are plenty of disk left and no user is over his quota. The culprit turns out to be left over semaphore arrays. To check whether they exist on your system, use
ipcs -s | grep apache
In my case this returns a shocking 128 left overs. To clear them, run
Continue reading ‘Apache Error #28 – No space left on device’