How to fix Apache2 error “Could not reliably determine the server’s fully qualified domain name using 127.0.1.1 for ServerName” on Debian Squeeeze

Valic —  February 13, 2012 — 1 Comment

If you have received this error while you were restarting the Apache2 server on Debian Squeeze:

/etc/init.d/apache2 start
Starting web server: apache2apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

To fix this problem  you need to edit the /etc/apache2/apache2.conf.

1. Open the /etc/apache2/apache2.conf file with your favorite editor.

vim /etc/apache2/apache2.conf

2. Now add the following line:

ServerName localhost

3. Restart apache2 server:

 /etc/init.d/apache2 restart
Restarting web server: apache2 … waiting ..

Now your problem is gone. Enjoy.

Valic

Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

One response to How to fix Apache2 error “Could not reliably determine the server’s fully qualified domain name using 127.0.1.1 for ServerName” on Debian Squeeeze

  1. Worked perfectly, awesome thanks man! Greetings from Sweden

Leave a Reply

*

Text formatting is available via select HTML. <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>