httpd restart problem

Discussion in 'Apache' started by usf, Dec 26, 2010.

  1. #1
    Hello Sir, I am facing a problem. I recently restore a backup from one server to another dedicated. But when I try to restart i get this error. Please suggest something.

    root@server [~]# service httpd restart
    [Sun Dec 26 05:13:26 2010] [warn] NameVirtualHost IP:80 has no VirtualHosts
    [Sun Dec 26 05:13:26 2010] [warn] NameVirtualHost IP:80 has no VirtualHosts
    [Sun Dec 26 05:13:26 2010] [warn] NameVirtualHost IP:80 has no VirtualHosts
    [Sun Dec 26 05:13:26 2010] [warn] NameVirtualHost IP:80 has no VirtualHosts
    [Sun Dec 26 05:13:26 2010] [warn] NameVirtualHost IP:80 has no VirtualHosts
    root@server [~]#

    Thanks
     
    usf, Dec 26, 2010 IP
  2. Sys Admin

    Sys Admin Well-Known Member

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    116
    #2
    Hello

    This is just a warning. Please edit your httpd.conf file and search for the line: NameVirtualHost IP:80

    and comment it and restart your Apache. You can run /etc/init.d/httpd configtest as well to check if there is any error.
     
    Sys Admin, Dec 26, 2010 IP
  3. usf

    usf Active Member

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    after edit the httpd.conf
    root@server [~]# service httpd restart
    root@server [~]# /etc/init.d/httpd configtest
    Syntax OK

    Sir Please check is this working properly httpd did not say stoped and start?
     
    usf, Dec 27, 2010 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #4
    Did it start though ?
     
    Bohra, Dec 27, 2010 IP