Error message when I restart Apache
When I restart Apache, I get the following message.
* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message. I am new to apache and using servers so excuse my ignorance. I have looked for the 'ServerName' directive in apache2.conf and cannot see anything of relevance. I also did, at one stage, change my '/etc/hosts' file without backing up the original. So I suspect this may be causing the problem, but I don't know how to fix it. Like I said, I'm a beginner and at a bit of a loss. Any help would be greatly appreciated. |
Quote:
Apache complains because it can't find a ServerName. That happened because you messed with /etc/hosts. Have a look here to see how it should look like (of course use your own IP(s) and hostnames). You can also edit apache2.conf and add: Code:
ServerName www.mydomain.com Regards |
terminal >
Code:
sudo echo "ServerName localhost" >> /etc/apache2/apache2.conf or add Code:
127.0.1.1 domain.com |
Thanks to you both. I changed the line 127.0.1.1 to my domain, and set the ServerName in apache2.conf to the same domain name. This has gotten rid of the error message.
|
Glad it worked out.
|
All times are GMT -5. The time now is 12:09 AM. |