Sunday, September 15, 2013

Apache Restarted Issue: Due to Semaphores

Check semaphores list:
ipcs -s

Remove them using following command:

ipcs -s | grep nobody | awk . { print $2 } . | xargs ipcrm sem

Syntax:
ipcs -s | grep process-owner | awk . { print $2 } . | xargs ipcrm sem

1 comment:

  1. If there is semaphores issue, you may see following log :

    [~]# tail -f /usr/local/apache/logs/error_log

    [Mon Sep 30 16:43:06 2013] [crit] (28)No space left on device: mod_rewrite: Parent could not create RewriteLock file /usr/local/apache/logs/rewrite_lock
    Configuration Failed

    ReplyDelete