Tag Archives: apache2: Could not reliably determine the server’s fully qualified domain name

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

After the initial install of Apache server, I got the following error while restarting the Apache service on Ubuntu 12.04:

The solution is really simple, just  add ServerName directive to /etc/apache2/httpd.conf :

 sudo nano /etc/apache2/httpd.conf

Add:

ServerName localhost

Finally restart the Apache server:

sudo /etc/init.d/apache2 restart

Hope this will help you!

Please Remember me in your prayers!

Advertisements
%d bloggers like this: