How to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on UbuntuHow to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Ubuntu

You may be facing the same following error while you were restarting/reloadig the Apache server on Ubuntu.
tanvir@tanvir-laptop:~$ sudo /etc/init.d/apache2 reload
 * Reloading web server config apache2 
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

To fix that problem, you need to edit the httpd.conf file. Open the terminal and type,
sudo gedit /etc/apache2/httpd.conf


By default httpd.conf file will be blank. Now, simply add the following line to the file.
ServerName localhost


Save the file and exit from gEdit.

Finally restart the server.
sudo /etc/init.d/apache2 restart

Comments

Popular posts from this blog

How to Reset Root Password in Drupal 7 with phpMyAdmin

Drupal - Hiding field group and its Children