Search code examples
apache2fedora

Could not reliably determine the server's fully qualified domain name


I have just installed Apache 2.2.17, and I am using it for the first time.

Now when I try to start the server using the command service httpd start it gives me the message:

httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

Now I think I have to set ServerName and the IP address as I search through Google. But I don't know in which file I have to set.

How can I fix this problem?


Solution

  • Yes, you should set ServerName:

    http://wiki.apache.org/httpd/CouldNotDetermineServerName

    http://httpd.apache.org/docs/current/mod/core.html#servername

    You can find information on the layouts used by the various httpd distributions here:

    http://wiki.apache.org/httpd/DistrosDefaultLayout

    In your case the file to edit is /etc/httpd/conf/httpd.conf