Apache2: Could not Determine Domain Name

If you get this error message when trying to start Apache:

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

Use the following command:

# gedit apache2.conf

Append to the end of the file:

ServerName localhost

This is archived version of blog, preventing broken links. This version will stay online indefinitely.