Find the answer to your Linux question:
Results 1 to 4 of 4
Dear sirs, I have installed httpd on Fedora 13 with yum, but it is not working when I type in a browser : localhost Code: [comp42 html]$ sudo /etc/init.d/httpd start ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9

    Fedora httpd dead but subsys locked

    Dear sirs,

    I have installed httpd on Fedora 13 with yum, but it is not working when I type in a browser : localhost

    Code:
    [comp42 html]$ sudo /etc/init.d/httpd start
    Starting httpd:                                            [  OK  ]
    [comp42 html]$ sudo /etc/init.d/httpd restart
    Stopping httpd:                                            [FAILED]
    Starting httpd:                                            [  OK  ]
    [comp42 html]$ sudo /etc/init.d/httpd stop
    Stopping httpd:                                            [FAILED]
    [comp42 html]$ sudo /etc/init.d/httpd status
    httpd is stopped
    [comp42 html]$ sudo /etc/init.d/httpd start
    Starting httpd:                                            [  OK  ]
    [comp42 html]$ sudo /etc/init.d/httpd status
    httpd dead but subsys locked
    [comp42 html]$ sudo /etc/init.d/httpd help
    [comp42 html]$ sudo /etc/init.d/httpd fullstatus
    Connection refused
    [comp42 html]$
    Tried to reinstall several times, but nothing works.
    My firewall is disabled, does not work either while enabled....

    My httpd conf is the default one.


    What is going wrong? Any suggestions?
    Last edited by rapgame; 12-03-2010 at 12:52 PM.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Look at the log files. My guess is that a lock file got left hanging around when things dies unexpectedly. The log files from when you tried to start/stop the service should indicate where that file may be. Then, as root, remove it and restart the service.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9
    Hi there,

    Thanks for your reply, Rubberman.

    I solved the problem by deinstalling httpd.

    Removing the whole httpd log directory by entering:

    # sudo rm -Rf /var/log/httpd/

    Installing httpd again, everything works.

    Still don't understand the cause of this problem, but it seems you where right Rubberman.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by rapgame View Post
    Hi there,

    Thanks for your reply, Rubberman.

    I solved the problem by deinstalling httpd.

    Removing the whole httpd log directory by entering:

    # sudo rm -Rf /var/log/httpd/

    Installing httpd again, everything works.

    Still don't understand the cause of this problem, but it seems you where right Rubberman.
    Well, even a broken clock is right twice a day! Glad you worked it out. FYI, look for a file "somefilename.lock" or "somefilename.lck", etc. in the httpd log directories next time. You should not need to reinstall it (httpd) from scratch.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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