Anansewaa
Apache Server

How to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Ubuntu

I get this error upon restarting Apache Server on a server running Ubuntu 16.04. This occurs because the ServerName is not set.

To fix this problem, we need to edit the apache2.conf file. Open the terminal and type this command:

At the very bottom of that file and add this line:

This should solve the problem and the error code AH00558 should now be gone. Now restart Apache server using the following command:

I hope this article helps.

 

Clemence Ayekple

Let's grab a cup of coffee and talk about programming

Add comment

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Most discussed

%d bloggers like this: