Find the answer to your Linux question:
Results 1 to 8 of 8
hi friends, i was testing my page which is in /var/www/html but it was not working so i checked httpd service service it showing httpd stop then i start it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    8

    service httpd failed


    hi friends,

    i was testing my page which is in /var/www/html but it was not working
    so i checked httpd service
    service it showing httpd stop
    then i start it
    but showing service httpd failed

    suddenly it happens. even i did not touch the httpd.conf file.

    whats the problem ? any idea ?

    plz plz help me

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,844
    It should tell you exactly what has gone wrong in the logs, take a look in /var/log/httpd/..., and tail the files in there.

    If you can't work it out, post up the last few entries and we'll try to help.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined! gkiran.linux's Avatar
    Join Date
    Jun 2008
    Location
    Hyderabad
    Posts
    6
    Hello

    #httpd -t should give you the syntex error.


    Kiran

  4. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    if you're running some redhat type system, check on selinux. it is notorious for causing mysterious failures in a system if its enforced.

  5. #5
    Linux Newbie
    Join Date
    Apr 2008
    Location
    India
    Posts
    170
    I would recommend you to check the error logs first, It will give you an
    clear idea what went wrong or whats wrong .
    Regards
    David Anand
    -->Success is the list of failures ...!!!

  6. #6
    Banned
    Join Date
    Feb 2010
    Posts
    31

    Check permission

    One of the top reasons things like this fail is a change in permissions.

  7. #7
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    you can also do:
    Code:
    service httpd configtest
    If its configuration-related.
    linux user # 503963

  8. #8
    Just Joined! govind_tadhiyal's Avatar
    Join Date
    Feb 2009
    Location
    not avilabel
    Posts
    2
    Quote Originally Posted by scathefire View Post
    you can also do:
    Code:
    service httpd configtest
    If its configuration-related.
    run this
    service httpd configtest
    or
    httpd -t

Posting Permissions

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