webserver

How do I resolve the error “Could not reliably determine the server’s fully qualified domain name” on my Linux Apache server?

If when you start Apache you get the following error:

Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using hostname.domainname.com for ServerName
[ OK ]

You can correct the problem by setting the ServerName in the /etc/httpd/conf/httpd.conf. By default ServerName is not set in the httpd.conf. If you search for the following line:

#ServerName www.example.com:80

You can uncomment it and set it accordingly.

Example:

ServerName www.mysite.com:80

or

ServerName server.domain.com:80

Then, just restart Apache and you’ll be up and running.

# service httpd restart

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top