Ubuntu: could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

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

Solution: 1. Open httpd.conf for editing

sudo vi /etc/apache2/httpd.conf

You might be surprised to see that the file is empty

  1. type the following:

    ServerName localhost

  2. Save file and restart apache server

    service apache2 restart

Technologies: