Weblog entry #7 for HWilton
#7
ServerName
Posted by HWilton on Wed 30 Apr 2008 at 11:00
I couldn't help posting this ... because its symptomatic of my experience with learning Linux on my own ...
It all started because i noticed this message when shutting down :
the webserver was running fine, there was nothing to worry about, but it was annoying - so i start searching for a fix.
Unfortunately couldnt find any ... the google search returned many entries for this error - and was confusing even more.
Until i found the most stupid fix there is :
and I just added at the end of the file
And that was it !
It all started because i noticed this message when shutting down :
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
the webserver was running fine, there was nothing to worry about, but it was annoying - so i start searching for a fix.
Unfortunately couldnt find any ... the google search returned many entries for this error - and was confusing even more.
Until i found the most stupid fix there is :
sudo vi /etc/apache2/httpd.conf
and I just added at the end of the file
ServerName localhost
And that was it !
Comments on this Entry
That'll fix it, but even better is to make sure that, by some method, your /etc/hostname contains a correctly resolvable hostname. Properly working DHCP should do it, as would a static IP and an /etc/hosts entry.
Cheers.:wq
[ Parent | Reply to this comment ]