Unable to restart apache successfully.
Frist, check error logs: tail -f /usr/local/apache/log/error_log
If you find something like :
[Fri Oct 10 00:11:01 2008] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run?
semget: No space left on device
It means, There is no more space left in Semaphore Arrays for Apache.
Read more about Semaphores here.
To quickly get rid of this issue, look at the semaphore arrays on your server using the following command.
ipcs -s
If you see too many of them, run the script which I have added here :
for i in `ipcs -s | awk '{print $2}'`; do ipcrm -s $i;done
And restart Apache. All will be good to go. Happy Browsing.





