LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   httpd service won't start (https://www.linuxquestions.org/questions/linux-newbie-8/httpd-service-wont-start-520826/)

GavB 01-19-2007 05:33 AM

httpd service won't start
 
Hello,

I am having a slight problem here, for some reason, I cant start Apache using the service httpd start command. I get a message saying that httpd has been started but the web pages just don't load and when I check with pidof httpd there is no process running. I'm not sure the CPU or memory usage is too high or anything, here is the output I get from TOP:

http://www.web-resources.co.uk/top.gif

(What is normal for load average?)

I hope someone can give me some advice, Thanks :D

billymayday 01-19-2007 05:41 AM

Gav, your top post seems to be missing most of the screen

What do your logs say?

GavB 01-19-2007 07:38 AM

Hi thanks for your reply, I have updated the image to show all of the processes as well.

In the Apache logs (usr/apache/local/logs/error_log) where is just the following:

Quote:

[Fri Jan 19 07:54:04 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Jan 19 07:54:06 2007] [notice] Apache/1.3.37 (Unix) PHP/4.4.4 FrontPage/5.0.2.2510 mod_ssl/2.8.28 OpenSSL/0.9.7a configured -- resuming normal operations
[Fri Jan 19 07:54:06 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Fri Jan 19 07:54:06 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri Jan 19 08:00:18 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
semget: No space left on device
[Fri Jan 19 08:01:36 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
semget: No space left on device
[Fri Jan 19 09:01:37 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
semget: No space left on device
[Fri Jan 19 10:01:40 2007] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
semget: No space left on device

merchtemeagle 01-19-2007 07:47 AM

Wat is the output of

Code:

$ df

GavB 01-19-2007 07:56 AM

Hi, after some digging around, I found this:

http://www.cpwiki.org/wiki/Troublesh...che_semaphores

For anyone else that has the same problem, this sorted it for me:

# service httpd stop
# /usr/bin/ipcrm sem $(/usr/bin/ipcs -s | grep nobody | awk '{print$2}')
# service httpd start

Thanks again to billymayday and merchtemeagle for your replies :)


All times are GMT -5. The time now is 02:27 AM.