Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th June 2010, 00:12
wa4bro wa4bro is offline
Junior Member
 
Join Date: Oct 2008
Location: Atlanta, GA.
Posts: 9
Thanks: 6
Thanked 1 Time in 1 Post
Default [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts

I have been racking my brain all day on this one. Time for some help please....

Centos 5.5

Something changed today on my server. I did get some yum updates but I do not think that caused the issue. I am running latest ispconfig2, updated a few weeks ago. From my very 1st. install I noticed during post that when starting httpd I would get this warning [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts. This did not keep httpd from starting and running and has been working fine for almost 2 years.

I was in the admin panel today and added a user to a domain and saved it. Sometime later I noticed httpd was down. I tried to restart from the admin panel but it would always fail. I ssh into the server and tried restarting from the command line and http would fail, With [warn] NameVirtualHost xx.xx.xx.xx:80 has no VirtualHosts In the past this has never stopped httpd from starting or the server working as normal.

I have looked at all I know (which is not as much as I need to know) and I can not see the issue. I replaced the httpd.conf and Vhosts_ispconfig.conf from last nights backup httpd started. Shortly after I restarted the server and httpd failed to start again. I replaced both the files and this time it made no difference. Everything else seems to be working but httpd

Anyone have any ideas of how to get httpd to restart again? I have about 20 domains on the server and I sure don't want to start from scratch again

Thanks in advance....
Dan
Reply With Quote
Sponsored Links
  #2  
Old 27th June 2010, 07:09
wa4bro wa4bro is offline
Junior Member
 
Join Date: Oct 2008
Location: Atlanta, GA.
Posts: 9
Thanks: 6
Thanked 1 Time in 1 Post
 
Default Solved - Replying to my own post

After about 10 hours with this I finally have everything back to running again.

Since I see more than 30 people read this without reply, I have an idea that maybe someone else has seen this issue too so here is what I found.

1. Deciding to do server maintenance, more than one thing at a time can cause yourself issues like doing a yum update and working on an ssl certificate too.

2. The initial problem of NamedVirtualHost has been my own fault from the beginning. There is no need to add your server IP address in the list of available IP addresses, this causes two entries in your /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf file. Removing the duplicate solved the NamedVirtualHost warning.

3. I also noticed that named was not running and then realized with some reading here that the permissions on bind had changed with the yum update and was causing that problem. Following one of Falko's post I reset the permissions and dns came back up.

4. httpd would still not restart but now it was just "failed" and not mentioning the NamedVirtualHost warning or error. A check of the error log yielded NOTHING. A config check of httpd.conf passed as ok and this was driving me crazy. What I learned off list is that the ssl module in Apache is worthless for giving any errors in the log files. So my next step was to look at my ssl section of all my virtual hosts in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf There I noticed my directive for my bundled godaddy certificate I installed had the wrong web id on it.

So what I really learned is LOG files help, but when it comes to http not starting and nothing is gleaned from the error log..... LOOK at all your ssl statements in your virtual hosts config file because it appears very little to nothing will be logged from ssl statement failures and httpd will fail to start without showing any errors!

I hope this helps out other new guys to Linux like me!
Reply With Quote
The Following User Says Thank You to wa4bro For This Useful Post:
falko (27th June 2010)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 12 - Strage problem - Freezes K_meleonu Installation/Configuration 6 3rd March 2010 18:42
Apache2 Errors Web-Sites Won't Load giganet Installation/Configuration 4 1st January 2009 19:00
apache wont start after deleting a site tellar Installation/Configuration 1 2nd October 2008 15:34
apache wont start after deleting a site tellar Installation/Configuration 2 1st October 2008 16:49


All times are GMT +2. The time now is 08:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.