Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-12-2003, 11:50 PM   #1
Registered: Jul 2002
Location: singapore
Distribution: red had 7.2
Posts: 109

Rep: Reputation: 15
httpd dead but subsys locked

Hi Linux user group
Appreciate if anyone can help.

I am working setting up my apacehe services for computer clustering.

When I type in the following
/etc/rc.d/init.d/httpd status

I have received the following message.

httpd dead but subsys locked

Can any one help ? What is the above message means and how to solve the problem.

Thank you

Old 05-15-2003, 06:59 PM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you need to delete this file


you can start the server then
Old 05-16-2003, 01:16 AM   #3
Registered: Jul 2002
Location: singapore
Distribution: red had 7.2
Posts: 109

Original Poster
Rep: Reputation: 15
httpd dead but subsys locked


Thanks ! I have deleted it and it work but it come back to the same error message.

To share my solution to all linux users who encountered the same problem.

So what I did was to comment Listen 80.(#listen80) that's mean the apache will list to all request instead of just port 80.(listen*:80)

Thanks a gain david.

Old 12-09-2004, 01:48 AM   #4
LQ Newbie
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
ANSWER FOUND - for me, anyway

This was my experience with a fresh install of Fedora Core 2...

I was stuck for 10 hours today trying to figure out why Apache would start up after reboot, however would not after about an hour when I restarted the daemon like this:

/etc/rc.d/init.d/httpd restart

Apache would respond with:

Stopping httpd: [FAILED]
Starting httpd: [ OK ]

But it wasn't up, and when I ran:


It responded with:

httpd dead but subsys locked

This sucked. I looked at my error_log and saw the message about available semaphores. This got me thinking. I ran:

sysctl kernel.sem

And Fedora responded with:

kernel.sem = 250 32000 32 128

Apparently too few. I had to issue the following commands:

rm /var/lock/subsys/httpd
rm /etc/httpd/run/httpd
echo "512 32000 32 512" > /proc/sys/kernel/sem

Those values seem to be enough. Now when issuing:

/etc/rc.d/init.d/httpd restart

I get:

Stopping httpd: [ OK ]
Starting httpd: [ OK ]

And when I run:

/etc/rc.d/init.d/httpd status

I get the usual:

httpd (pid A_LOT_OF_PIDS_HERE) is running...

I ran:

echo "kernel.sem=512 32000 100 512" >> /etc/sysctl.conf

To add a command to /etc/sysctl.conf to ensure that enough semaphores are loaded on startup. If this doesn't work for you, try bumping up the first and last numbers (double them).

Woohoo! Problem solved. I hope that helps somebody.

Last edited by kryptronic; 12-09-2004 at 02:18 PM.
Old 02-17-2005, 06:02 AM   #5
LQ Newbie
Registered: Dec 2003
Location: Oklahoma City, OK
Distribution: Fedora Core 3
Posts: 1

Rep: Reputation: 0

Thanks, kryptronic! That really helped.
Old 03-21-2005, 05:26 PM   #6
LQ Newbie
Registered: Sep 2004
Location: Paris, France
Distribution: Fedora 2
Posts: 12

Rep: Reputation: 0
thanks that helped me ... I htought i would have to treinstalled it .. an dI had the idea to browse the forum.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd dead but subsys locked paleogryph Linux - Software 3 05-18-2016 10:37 AM
sshd dead but subsys locked itsjustme Linux - Networking 14 09-08-2005 10:36 PM
crond dead but subsys locked dpirvulescu Linux - Software 9 04-23-2005 09:09 AM
innd dead but subsys locked taprasanna Linux - Networking 0 12-15-2004 10:55 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration