
I started Apache on my system and the following error was returned. Apache seems to operate okay but I was getting a similar kind of error in the log files when I was running Privoxy, an advertisment and cookie crunching proxy server.
When the proxy server was operating it was this error that kept slowing the response of the server.
/etc/init.d/apache2 start returned 0 (success): Starting httpd2 (prefork) ..done httpd2-prefork: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Any clues? DNS, host file problem.
From what I understand (this is how I fixed the problem), you need to have the <VirtualHost> entry in /etc/apache2/sites-enabled/default matching the hostname of your computer.
In my case, /etc/hosts reads:
127.0.0.1 bnonn.ath.cx violet localhost localhost.localdomain
And the first few lines of /etc/apache2/sites-enabled/default read:
NameVirtualHost violet <VirtualHost violet> ServerAdmin bnonn(a)orcon.net.nz ServerName bnonn.ath.cx
Whether this is the correct way to do it or not I'm afraid I'm not sure. I did some brief research a couple of weeks ago to see if I could figure out why I was getting the same error, and altering the ServerName setting in Apache resolved this. However, I don't really understand how FQDN works, and how DNS really factors into it, so I'd also be grateful for the technical wisdom of others who do. If I'm doing something howwbly wrong it would be good to know (: Regards, Bnonn