Error with Apache2 on Debian Lenny: “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName”

Posted on

Error with Apache2 on Debian Lenny: “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, debian, apache-2.2, debian-lenny, .

I installed apache2 in Debian Lenny but when I give the command sudo /etc/init.d/apache2 reload it gives me a statement saying “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName”.

How can I change the server name? And how can I make it accessible from another system?

Solution :

As noted on a previous question, you can either specify a ServerName outside of any VirtualHost directive, or place a fully qualified domain name as the first name on the 127.0.1.1 line of your /etc/hosts file.

put a ServerName in /etc/apache2/sites-enabled/default

ServerName   mydomain.com

within the <VirtualHost></VirtualHost> section.

Then, make sure that name resolves to something, either modifying /etc/hosts or using something like dyndns.org to have a hostname that points to your home machine.

The basic installation Listens to all interfaces on port 80, so, once a machine knows to point to your site, it should be able to reach it.

The ServerName warning won’t prevent things from working, it just makes things that rely on canonical redirection break.

Leave a Reply

Your email address will not be published.