There were some problems with Apache early this morning (1am) that I
didn’t catch until about 6am today. If you tried to access the site
then, you couldn’t =) The semaphore were full, I’ve never run into this
problem before. Every time I tried to start Apache it would error out
disk was out of space.
warn pid file /usr/local/apache/logs/httpd.pid overwritten — Unclean
shutdown of previous Apache run?
semget: No space left on device
I checked the space and log file sizes, all were fine. Thankfully I
managed to find a nice script on cpanel forums that helped me get things
back to normal once again.
#!/bin/bash
ipcs -s | grep nobody | perl -e ‘while () {
@a=split(/\s+/); print `ipcrm sem $a[1]`}’
/scripts/restartsrv httpd
Cheers
Steve
Categories:
June 13th, 2006 at 11:00 am
So, are you the same Steve that used to work in the insurance industry? in a past life?
June 15th, 2006 at 5:01 pm
No sorry
September 8th, 2006 at 6:35 am
Web Space Hosting…
Thanks for short yet informative article. It covers most of things I wanted to know on this topic…
October 5th, 2006 at 9:21 am
Dave…
Interesting topic… I’m working in this industry myself and I don’t agree about this in 100%, but I added your page to my bookmarks and hope to see more interesting articles in the future…