Could not reliably determine the server's fully qualified domain name...

If you see this message after restarting your Apache server, "apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName."

Don't panic. All you have to do is to edit the httpd.php file and add your server name to it.

~$ sudo gedit /etc/apache2/httpd.conf

(Note "gedit" is the text editor I am using; so if you are using other text editor, simply replace "gedit" with the name of your favorite text editor.)

By default, when the httpd.conf opens, it will be blank. Simply add "ServerName Localhost."  Save and close the file. The next step is to restart your server.

~$ sudo /etc/init.d/apache2 restart

Voila, the error message disappeared.

Finally, test your server to ensure everything is okay.

~$ apache2ctl configtest
Syntax OK

0 comments:

Post a Comment