FedoraForum.org - Fedora Support Forums and Community
Results 1 to 14 of 14
  1. #1
    Join Date
    May 2007
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    httpd - This Service Is Dead

    Thanks for taking the time to read my question.

    I have opened up the Service Configuration window that shows all the services and their status. My httpd says that it is enabled, but also that "this service is dead" and there is a orangish triangle.

    Is this a problem? I can run phpMyAdmin on my server, but I can't run it from any other PC on my network.

    Thanks for your help.

    Brad

  2. #2
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    That usually means that either Apache crashed or that it is having trouble starting up due to a configuration error. What do you see when you run this as root in a terminal?
    Code:
    /sbin/service httpd restart
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

  3. #3
    Join Date
    May 2007
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    Thanks for such a quick reply!

    Here is what I get

    [brad@localhost ~]$ su root
    Password:
    [root@localhost brad]# /sbin/service httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    [FAILED]
    [root@localhost brad]#
    I was running a yum update and it stopped working. I had to restart the server... not sure what that did...
    Brad

  4. #4
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    Hrm, that looks like either something went wrong mid-upgrade for httpd or another process is already running. What's the output of:
    Code:
    pgrep httpd
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

  5. #5
    Join Date
    May 2007
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    Results.

    [root@localhost brad]# pgrep httpd
    1677
    1749
    1750
    1751
    1752
    1754
    1755
    1756
    1757
    1758
    2176
    2181
    2183
    2640
    2641
    2642
    [root@localhost brad]#
    Should I save my config files, uninstall, then reinstall?

    Brad

  6. #6
    Join Date
    Jan 2010
    Posts
    8,698
    Mentioned
    41 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    Instead of using service httpd, try apachectl.

    I've been playing with CentOS and hpttd in a jail--I was getting some peculiar fail to stop errors and some googling found a bug. (Sorry, didn't keep the url). I imagine it's not a really common one, as there were few comments, but a bit more googling indicated that some folks just said cuss it, and began using apachectl

    Just for fun, try

    apachectl restart

    (also from a terminal, as firewing suggested).

    Ah, here it is. From F11 and left as new.

    https://bugzilla.redhat.com/show_bug.cgi?id=508170

    I suspect--and this is only a guess--that there's some reason for it, but it's simply not a common error, which is probably why nothing's happened--the maintainer probably couldn't reproduce it.

    That's just speculation on my part though. I just guess it's rare and probably due to some other cause, because googling didn't get me many hits on it.

  7. #7
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    Instead of using apachectl to restart, I would try gracefully stopping the existing httpd servers and then restarting using the "/sbin/service" utility to let the init system keep tabs on the running httpd processes:
    Code:
    apachectl graceful-stop && /sbin/service httpd restart
    Now you can run:
    Code:
    /sbin/service httpd status
    to ensure everything went OK.
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

  8. #8
    Join Date
    May 2007
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    Sorry for the slow reply....

    results:
    [root@localhost brad]# apachectl graceful-stop && /sbin/service httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
    [FAILED]
    [root@localhost brad]# /sbin/service httpd status
    httpd is stopped
    [root@localhost brad]#
    Doesn't look good does it..

    Brad

  9. #9
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    Is rebooting the server a possibility? That would clear up the httpd processes. Or alternatively you can also kill them via their PID shown by pgrep.
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

  10. #10
    Join Date
    May 2007
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    Great idea. I have already restarted twice. Great minds....

    I'm going to have to hit the hay if I'm going to wake up for work tomorrow. If you have any other ideas, please let me know.

    I went back into the Service Configuration window and it said that httpd was enabled and stopped. So I started it again, and it came up with the same error. The odd thing is, now I'm able to open phpMyAdmin locally on the server.

    Messed up.

    Brad

  11. #11
    Join Date
    May 2007
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    I put my static IP address back in as a result of reading something somewhere, and now it all works again.

    Why can't I get a reserved IP from my router via DHCP and have it still work?

    Thanks again to all that helped out.

    Brad

  12. #12
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    That's odd, your IP address shouldn't cause a dead/wrong PID file... Can you post a diff of the change you made to get things working again? (for security reasons, change your old and new IP address to 1.1.1.1 and 2.2.2.2 respectively while posting)
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

  13. #13
    Join Date
    May 2007
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    The only thing I did was add a static IP address to my network settings, and then restarted my server. Then it started to work.

    Clarification. phpMyAdmin started to work on the other PC's on my network... I still get the httpd is dead.

    For now everything works, so I don't know what that error means.

    Brad

  14. #14
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: httpd - This Service Is Dead

    That makes sense, without a static IP it would be difficult to get phpMyAdmin or other web pages served to other computers since your IP address would change periodically! The "httpd is dead" error is still not normal though. If everything is working as expected I guess no harm done, just use "apachectl" instead of "service httpd" to start/stop/restart httpd.
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

Similar Threads

  1. nmb service is dead
    By ttx336 in forum Using Fedora
    Replies: 27
    Last Post: 18th January 2010, 11:58 PM
  2. OpenVPN service is dead
    By litikiti in forum Servers & Networking
    Replies: 5
    Last Post: 18th January 2010, 02:10 PM
  3. httpd dead by subsys still locked
    By jazztrump9 in forum Using Fedora
    Replies: 4
    Last Post: 27th August 2009, 09:15 PM
  4. Open VPN Service Dead
    By Donchulo in forum Servers & Networking
    Replies: 3
    Last Post: 28th May 2009, 01:52 PM
  5. httpd services is dead
    By julian5 in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 1st February 2009, 01:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •