Could not determine the server's fully qualified domain name

Discussion in 'Apache' started by alphaque, Jun 6, 2007.

  1. #1
    Hi
    i always get this error message in the apache server error log when i restart the server :

    [Tue Jun 5 02:52:14 2007] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for
    ServerName
    [Tue Jun 5 02:52:14 2007] [warn] NameVirtualHost 198.189.19.2:80 has no VirtualHosts

    May i know how to fix the above errors ?

    thanks
    rgds..
     
    alphaque, Jun 6, 2007 IP
  2. sparksupport

    sparksupport Peon

    Messages:
    4
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you added the entry for localhost, servername and IP in /etc/hosts file ?
     
    sparksupport, Jun 6, 2007 IP
  3. damonp

    damonp Peon

    Messages:
    97
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    These aren't actual errors but warnings. Apache should be running even with these.

    On a generic Linux box you can fix the first with something similar to:
    echo HOST.DOMAIN.com > /etc/hostname
    /bin/hostname -F /etc/hostname
    /etc/init.d/httpd restart
    
    Code (markup):
    The way to clear the VirtualHosts warning is to comment out the line

    NameVirtualHost 198.189.19.2:80
    Code (markup):
    in httpd.conf. This is just warning that 192.189.19.2 is configured for a NameVirtualHost but no virtual hosts have been designated for it. It should not hamper the operation of the server at all (unless you actually should have a VirtualHost on that IP and its config is munged).
     
    damonp, Jun 6, 2007 IP