I am unable to restart Apache server after i edited httpd.conf

Discussion in 'Apache' started by chetanmadaan, Aug 7, 2008.

  1. #1
    I am unable to restart Apache server after i edited httpd.conf... please Help!

    thanks in Advance
     
    chetanmadaan, Aug 7, 2008 IP
  2. ipro

    ipro Active Member

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    try checking apache's error.log to see what the error is, post the last error here if you don't understand how to fix it yourself. otherwise we can't help
     
    ipro, Aug 7, 2008 IP
  3. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #3
    When Apache refuses to restart the server is because you made a typo while editing your httpd.conf file.

    Double check if there is not a missing comma, semi-color or non-existing path before retry.
     
    Trusted Writer, Aug 7, 2008 IP
  4. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #4
    you did made a backup of httpd.conf before editing, right? :rolleyes:
    if not.. check the lines you have edited, there is probably something there that is messing it up. Also, check error_log as suggested, and other logs also, depending on which server/configration you are running (/var/log/messages etc.).
     
    pr0t0n, Aug 8, 2008 IP
  5. fscottdahlgren

    fscottdahlgren Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    From one peon to another:

    Try emacs: it automatically makes a backup of your files. That way, when you have a stray ^C or whatnot you can just copy the backup to the one apache looks for. It has saved me so, so many times.

    Scott
     
    fscottdahlgren, Aug 11, 2008 IP
  6. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #6
    it's will be more better for checking error_log because it will give you more specific error message why your apache can't running well
     
    nimhost, Aug 15, 2008 IP
  7. hostindya

    hostindya Banned

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    login in to ssh as root and run this command service httpd restart and see what result comeing
     
    hostindya, Aug 16, 2008 IP