depicus

changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

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

April 19, 2013 by The Man

If you get this error

* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Simply

sudo sh -c 'echo "ServerName localhost" >> /etc/apache2/conf.d/name' && sudo service apache2 restart

Update for 13.10 onwards

sudo nano /etc/apache2/conf-available/servername.conf

Then add

ServerName localhost

to the file and save then

sudo a2enconf servername

and finally restart Apache

sudo service apache2 reload