Welcome to learning Zone ...

Sunday, October 7, 2012

How 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 might probably trapped with following error while starting the Apache server on Ubuntu.
muhammad@mdba:~$ sudo /etc/init.d/apache2 start * Starting web server 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, append the following line to the file:

ServerName localhost

Save the file and exit from gEdit and restart the server by issuing the following command:

sudo /etc/init.d/apache2 restart

No comments:

Post a Comment