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

apache-2.2debiandebian-lennylinux

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?

Best Answer

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.