Apache2 Could not reliably determine the server’s fully qualified domain name

July 13, 2021 . 1 MIN READ

apache2: Could not reliably determine the server’s fully qualified domain name

 

I googled it and have come across the following solutions, all of them involve changing the ServerName setting in httpd.conf:

  1. ServerName localhost
  2. ServerName www.example.com:80
  3. ServerName <ip-address-of-server>
  4. ServerName <hostname-of-machine/FQDN>

I am setting up httpd to be accessed from over a LAN, so i don’t have a .com domain name.
I am thinking of going with the first option, it seems to be working…

i am hoping someone here could point out any possible issues this may cause.

Thanks in advance

 

You should be able to use just ServerName SERVERNAME. Also look at your /etc/hosts file and make sure everything is correct.

 

Leave a Reply

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