Sep
18

Apache2: Could not determine the server’s fully qualified domain name

By rzelazko  //  Apache, Lamp, Linux  //  6 Comments

If you get following error in your apache:

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

The fix is to edit the conf file and add in the ServerName setting (as the error message requests). In other words:

sudo vi /etc/apache2/httpd.conf

followed by adding the following string:

# ServerName is specified
# to avoid warning during reload
ServerName MYSERVER

6 Comments to “Apache2: Could not determine the server’s fully qualified domain name”

Leave a comment