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

When I start apache (or run “apache2ctl configtest”), I get this error:

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

I tried to set only one servername in /etc/hosts but even this failed.
I added a server name to /etc/apache2/sites-available/default but it did not work either.

To get rid of error message, I created an ‘httpd.conf’ file (/etc/apache2/httpd.conf) and filled it with:

ServerName localhost

Error message disapeared!

sources

Post a Comment

Your email is never published nor shared. You're allow to say what you want...