Debian // Could not reliably determine the server’s fully qualified domain name

When you try restarting your apache server and get this error:

    [....] Restarting web server: apache2apache2: apr_sockaddr_info_get() failed for "yourdomain"
    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

 

You have this error because you didn’t specified the server name to which your web server will respond to.

To solve this, open “/etc/apache2/apache2.conf” file.

    nano /etc/apache2/apache2.conf

 

Add at the end of the file, add a server name

    ServerName "yourdomain.com"

 

Now restart your apache server:

    service apache2 restart

 

PS: If you’re not admin, use “sudo” command before any of these instructions.
That’s all :).

Debian // Could not reliably determine the server’s fully qualified domain name