Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    65

    Exclamation NameVirtualHost directive missing.

    I was on php. 4.3.10 and upgraded to 4.3.11 and have opened a can of worms.

    Server Specs
    RL ES3
    Dual Xeon
    1GB

    TO cut things short it seams all the virtual hosts break after upgrading.

    When starting Apache I get an error for each domain say that "NameVirtualHost directive is missing"

    Is there a quick way to fix this? I don't want to manually adjust a few 100 records


    Thanks,

    Brad
    Last edited by kickedmydog; 08-06-2005 at 03:54 PM.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You will have to add a NameVirtualHost for each IP address before it's used in a VirtualHost container in httpd.conf. You only need one statement per IP address, not per domain or virtualhost.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    65

    Default Thanks, that worked

    Quote Originally Posted by chirpy
    You will have to add a NameVirtualHost for each IP address before it's used in a VirtualHost container in httpd.conf. You only need one statement per IP address, not per domain or virtualhost.
    Thanks, that fixed everything.

    I wasn't in the mood but I went through and tweaked the rest of the file and notice a significant improvement in speed now.

    Unfortunate WHM seems to be only 80% working when it comes to rebuilding Apache.

Similar Threads & Tags
Similar threads

  1. NameVirtualHost for all IP's ?
    By badzilla in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-22-2010, 02:52 PM
  2. Missing NameVirtualHost tags in httpd.conf
    By trparky in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-09-2006, 04:31 PM
  3. New Account Creation missing ScriptAlias directive
    By btrieve in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-01-2005, 01:12 AM
  4. namevirtualhost? hmm
    By multivol in forum cPanel and WHM Discussions
    Replies: 21
    Last Post: 11-27-2002, 08:20 PM
  5. NameVirtualHost *
    By MattF in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-29-2002, 06:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube