Ubuntu Rackspace, how to set up a server qualified domain name?

Easy tutorial to Fix the error: apache2: Could not reliably determine the server’s fully qualified domain name after installing Ubuntu 12.04 on your host.

So you have encountered the following warning on your Ubuntu server setup:

apache2: Could not reliably determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName

No fear, here’s what to do to fix it:

1. Open the main Apache config file

sudo nano /etc/apache2/apache2.conf

2. At the bottom of the file add your server name

ServerName myServerName

3. Okay, that was easy. Next save the file and restart Apache.

sudo service apache2 restart

Great, everything is done. It’s a good idea to run a config test now to double check everything is good.

sudo apachectl configtest

You should see “Syntax OK”

Leave a Reply

Your email address will not be published. Required fields are marked *