I had the same problem. After a bit of mucking around, I came up with this:
As root run ipcs -s | grep www | cut -d " " -f2 > killthese.txt
To extract the lock file IDs, Then run the following script to knock them off:
#!/bin/sh
# open file the for reading
exec 6<killthese.txt
# read until end of file
while read -u 6 dta
do
echo killing "$dta"
ipcrm sem $dta
done
#close file killthese.txt
exec 6<&-
This, after some time, managed to kill off all the lock files. Remember to ensure that the httpd service is not running before you run these commands.
/etc/init.d/httpd stop
I found I also needed to kill some http processes as well. After I ran these, and killed off all the locks as suggested by the second post (thanks for the info by the way), I still could not start the httpd service. I was getting ssl errors. As a short term solution I had to change the name of the server to get httpd running again. I think I need to delete an auto generated ssl certificate and then rename back to the original name. I'm still trying to figure out how to do this.
Steve