Quote:
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.
|
You didn't mention your distro, but I guess you're running Mint as in your profile, even though the following applies to all.
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
The hostname used in the ServerName directive it's better to match the one in /etc/hosts (but not necessarily)
Regards