Subject: Re: Fwd: Can't start apache server
To: Xianwen Chen <apple45@gmail.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 03/30/2006 23:12:55
On Fri, 31 Mar 2006 11:59:36 +0800, "Xianwen Chen" <apple45@gmail.com>
wrote:

> I used:
> "#apachectl start"
> to try to start apache,but I failed.
> The error msg is
> "mod_unique_id: unable to gethostbyname"
> 
> I use pkg_add to add the apache-1.3.x.tgz.My NetBSD version is 2.0.2.
> 
> Please help me!
> 
This is really an Apache issue, not a NetBSD issue, but the problem is
just what it says: it's doing a gethostbyname() for whatever it thinks
is the host name, and it's not succeeding.  Is your hostname listed in
the DNS?  Is there some override in httpd.conf?  For the former, you
can alway use /etc/hosts.


		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb