The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Urgent, Please Help! Apache Failing To Start!

Discussion in 'EasyApache' started by Ganga, Aug 8, 2004.

  1. Ganga

    Ganga Well-Known Member

    Joined:
    Oct 2, 2003
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Hi everybody.

    I gracefully rebooted my server tonight and since then Apache doesn't want to know to start.

    I get this message when I attempt to restart the service in WHM:

    When I run /usr/sbin/httpd configtest I get this line repeated a lot of times:

    Needless to say, I have tried to recompile Apache a couple of times from WHM, the second time forcing using the default config option (last resort).

    Any help would be greatly appreciated.

    Thank you
     
    #1 Ganga, Aug 8, 2004
    Last edited: Aug 24, 2004
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    [Mon Aug 9 00:19:19 2004] [warn] VirtualHost 66.98.xxx.xx:80 overlaps with Virt ualHost 66.98.xxx.xx:80, the first has precedence, perhaps you need a NameVirtua lHost directive
    Syntax OK

    Edit your httpd.conf located at /usr/local/apache/conf/ and check what the NameVirtualHost directive says. Sounds like you need to add one using:
    NameVirtualHost "IP address":80
    If you can't figure it out, post the relevant portion of the httpd.conf and someone can probably figure out what your problem is.
     
  3. Ganga

    Ganga Well-Known Member

    Joined:
    Oct 2, 2003
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Thanks, I did understand that on my own, looking on Google.

    I managed to add the NameVirtualHost line as you suggest and now I don't get all those lines anymore.

    I did eventually get an error when running the configtest saying that /dev/null was invalid.

    I put a # before the line mentioning /dev/null in httpd.conf and now Apache works at last!!!

    However, I had to kill a subdomain that redirected to a particular IP address and recreate it.

    Is there any way that I can find anywhere traces of where it used to point to in any log?

    Thank you
     
    #3 Ganga, Aug 8, 2004
    Last edited: Aug 8, 2004
  4. Ganga

    Ganga Well-Known Member

    Joined:
    Oct 2, 2003
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Any idea please anybody?
     
  5. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Assume you have checked /usr/local/apache/log files and also /usr/local/apache/conf for any old httpd.conf files?
     
  6. Ganga

    Ganga Well-Known Member

    Joined:
    Oct 2, 2003
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Yes, thank you.

    There is no old file in there.... :(

    What else can I try?
     
  7. Ganga

    Ganga Well-Known Member

    Joined:
    Oct 2, 2003
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Thanks a lot for this useful bit of info, it has helped a lot!
     

Share This Page