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

by c

If Apache is bugging you with

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

Get your hostname

$ hostname

production

and tell Apache by putting

ServerName production

in

/etc/apache2/apache2.conf

You can also do this in one line:

$ sudo echo “ServerName “`hostname` >> /etc/apache2/apache2.conf