Skip to content

Instantly share code, notes, and snippets.

@h4cc
Created June 9, 2014 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h4cc/10e75521ecd3f78ee4c5 to your computer and use it in GitHub Desktop.
Save h4cc/10e75521ecd3f78ee4c5 to your computer and use it in GitHub Desktop.
How to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" Error on Ubuntu
# Write the ServerName for apache2 in a custom config file:
echo 'ServerName localhost' > /etc/apache2/conf.d/servername
# Restart d'a Server!
service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment