Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

NameVirtualHost has no effect

Discussion in 'EasyApache' started by gnetwork-cp, Sep 27, 2017.

  1. gnetwork-cp

    gnetwork-cp Member

    Joined:
    Mar 1, 2016
    Messages:
    17
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    About a week ago, when restarting apache using ssh, I got the following notice:
    "AH00548: NameVirtualHost has no effect and will be removed in the next release..."
    Same issue seen in this post:
    NameVirtualHost has no effect error?

    I ran the rebuild mentioned in that post, and also rebuilt the EA4 profile, the notice disappeared for couple of days, then came back!

    Any easy way to stop these residual NameVirtualHost entries from regenerating?
     
  2. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    142
    Likes Received:
    14
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Website Owner
    Twitter:
    Can you open your httpd.conf file and check if the entry for Virtualhost is :
    <VirtualHost xxx.xx.xxx.xx:80> where (xxx is your IP ) try to replace it with : <VirtualHost *:80> and restart apache.
    Check if that solved the problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. gnetwork-cp

    gnetwork-cp Member

    Joined:
    Mar 1, 2016
    Messages:
    17
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Thanks for suggestion. For some reason only one virtual host had the NameVirtualHost entry stuck.
    I resaved that domain's zone, and ran /scripts/rebuildhttpdconf - the NameVirtualHost entry has disappeared again, and hopefully will stay like that.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,233
    Likes Received:
    1,939
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The "NameVirtualHost has no effect and will be removed in the next release" message is informational and will not result in any issues accessing your websites. It's no longer used as of cPanel version 68:

    Fixed case CPANEL-15364: Avoid adding NameVirtualHost to httpd.conf when using EA4.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice