Urgent, Please Help! Apache Failing To Start!

Ganga

Well-Known Member
Oct 2, 2003
107
0
166
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:

httpd status
root 9632 0.8 0.9 10880 9420 ? S 00:21 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd


httpd has failed, please contact the sysadmin.
When I run /usr/sbin/httpd configtest I get this line repeated a lot of times:

[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
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
 
Last edited:

sawbuck

Well-Known Member
Jan 18, 2004
1,365
10
168
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.
 

Ganga

Well-Known Member
Oct 2, 2003
107
0
166
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
 
Last edited:

Ganga

Well-Known Member
Oct 2, 2003
107
0
166
Yes, thank you.

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

What else can I try?