Skip to content

Instantly share code, notes, and snippets.

@ChengLong
Created October 27, 2014 17:24
Show Gist options
  • Save ChengLong/781ff0e544328d37de00 to your computer and use it in GitHub Desktop.
Save ChengLong/781ff0e544328d37de00 to your computer and use it in GitHub Desktop.
Solve Apache unresolved fqdn

On Ubuntu >=14.04, if you see this when using Apache

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

Do:

  1. echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf
  2. sudo ln -s /etc/apache2/conf-available/fqdn.conf /etc/apache2/conf-enabled/fqdn.conf

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment