How To Delete Apache Semaphore

Apache generates semaphores and when it can not generate more, you should get an error like this:

“No space left on device:mod_rewrite: could not create_rewrite: could not create rewrite_log_lockConfiguration Failed”

You should delete semaphores to fix it.

Listing and deleting semaphores :

# ipcs -s grep apache
# ipcs -s grep apache perl -e ‘while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}’

You should be able to start apache fine now.

Related posts:

  1. What Is Semaphores Linux ? A semaphore is a type of Interprocess communication resource used...
  2. awk linux with example – Useful Famous Oneliners 1. Delete leading whitespace (spaces and tabs) from the beginning...
  3. Semaphore error (semget) – Apache crash The issue causes mainly due to not enough disk space...
  4. Use this script to reduce apache high load This script can be used to minimise the load on...
  5. Cannot restart Apache : Segmentation fault : Apache Down Apache goes down and wont come up if we try...