woody200456

Member
Aug 6, 2005
9
0
151
Hello please could someone help me fix this error im having with apache why do i keep getting this error when trying to restart or start apache:

/etc/init.d/httpd restart: httpd not running, trying to start
[Thu Jan 4 02:57:04 2007] [warn] NameVirtualHost MY IP HERE has no VirtualHosts
/etc/init.d/httpd restart: httpd started

Thanks in advanced for all your help.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
It's not an error, just a warning and an inconsequential one at that. It simply means that Apache has a NameVirtualHost entry for an IP address on your server, but no domains are using it yet. It's not a problem.
 

woody200456

Member
Aug 6, 2005
9
0
151
ok thanks but my apache wont start ive tried restarting it via WHM and it says failed and also via root and it brings that message above and still wont start or restart.

please help and thanks in advanced.
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
check in your /usr/local/apache/logs/error_log for the error when you fail to restart it.
 

HH-Steven

Well-Known Member
Aug 29, 2004
284
0
166
cPanel Access Level
Root Administrator
It's not an error, just a warning and an inconsequential one at that. It simply means that Apache has a NameVirtualHost entry for an IP address on your server, but no domains are using it yet. It's not a problem.
Unless im misunderstanding you here i have to disagree:


[email protected]**** [/usr/local/apache/bin]# ./apachectl configtest
[Wed Apr 4 18:03:51 2007] [warn] NameVirtualHost 72.232.87.125:80 has no VirtualHosts
[Wed Apr 4 18:03:51 2007] [warn] NameVirtualHost 72.232.87.124:80 has no VirtualHosts
[Wed Apr 4 18:03:51 2007] [warn] NameVirtualHost 72.232.87.122:80 has no VirtualHosts
Syntax OK

72.232.87.122 is the main shared IP address for one of my servers and has at least 50 domains using it.

Also, apologies for the "post on an old thread thing" im in the UK and got the dd/mm/yy - mm/dd/yy mixed up.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
That's probably happening because you have lines with:

NameVirtualHost 72.232.87.125:80

as well as:

NameVirtualHost 72.232.87.125

Since cPanel VirtualHost containers use the latter format and not the former you see those errors. So, they're also inconsequential and nothing to worry about.