Could Not Reliably Determine The Server Fully Qualified Domain Name

Last modified: 
Friday, March 27th, 2015
Topics: 
Apacheerrors

Problem

When starting Apache2, you are met with the following notice:

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

Solution

Set the ServerName variable.

# Example of setting the Apache2 ServerName variable to 'localhost'
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn

# Restarting the service should no longer present the notice.
service apache2 restart

References

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


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.