Friday 9 August 2013

Apache Issue When Restart



Solution for: 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


Sometimes while restarting the apache server, using this command
 sudo /etc/init.d/apache2 restart

Get output as:
* Restarting web server apache2                                                                                                   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
                                                                                                                            [ OK ]


This can be fixed by providing the server name in the httpd.conf file of apache2

sudo gedit /etc/apache2/httpd.conf

By default its an empty file, put this content into this file

ServerName localhost

Save this file and now restart apache.

0 comments:

Post a Comment