New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

Your preferred Interactive shell?









( 1340 votes ~ 14 comments )

 

Weblog entry #7 for HWilton

ServerName
Posted by HWilton on Wed 30 Apr 2008 at 11:00
Tags: , ,
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 :

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

Posted by daemon (146.231.xx.xx) on Wed 30 Apr 2008 at 20:21
[ Send Message | View Weblogs ]

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 ]

Posted by Anonymous (24.7.xx.xx) on Sun 2 Nov 2008 at 06:57
Dude, I knew it was a simple move....

thanks

[ Parent | Reply to this comment ]

 

 

Flattr