Skip to content

Apache HTTPD Common Issues

Cannot Determine Server Fully Qualified Domain Name

The Problem

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

Solution

This problem can be resolved by doing one or two of the following solutions.

  • Set "ServerName" directive within the configuration file (e.g. httpd.conf or all the files within /etc/apache2/sites-avaliable/).
  • Set the FQDN (fully qualified domain name) within the "/etc/hosts" file (e.g. 127.0.1.1 john.example.com john).
  • Restart Apache2 (httpd), $ sudo services apache2 restart.