apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
When I try to restart Apache using sudo service apache2 restart I am getting the following message:
To get rid of it, I have to add the following in my /etc/hosts file:
Where ubun1210minib.com ubun1210minib is an arbitrary name I selected. Of course this is not the proper way to fix it as the above information does not properly resolve. Also need to modify /etc/apache2/sites-enabled/000-default to have a line like:
Note the line that contains ServerName, that should match with the name provided above.
* 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
To get rid of it, I have to add the following in my /etc/hosts file:
127.0.1.1 ubu1210minib.com ubu1210minib
Where ubun1210minib.com ubun1210minib is an arbitrary name I selected. Of course this is not the proper way to fix it as the above information does not properly resolve. Also need to modify /etc/apache2/sites-enabled/000-default to have a line like:
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName ubu1210minib.com DocumentRoot /var/www
Note the line that contains ServerName, that should match with the name provided above.
Comments