Apache not starting/crashing

25 Jan

Apache wouldn’t start and in the logs it said something like:

“No space left on device: Couldn’t create accept lock”

I might refer to SSL or mod_python or something.

Check the free semaphores on the machine using:

$> ipcs -s

– it should show a few (maybe a dozen at most?)

If you stop apache and they’re still showing up, you need to kill them manually using:

$> ipcrm -s

Or you can stop them all at once (if apache is dead) using:

$> for i in `ipcs -s | awk ‘/apache/ {print $2}’`; do (ipcrm -s $i); done
# where ‘apache’ is the Apache user

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: