Subject: Re: Fwd: Can't start apache server
To: None <netbsd-users@netbsd.org>
From: Xianwen Chen <apple45@gmail.com>
List: netbsd-users
Date: 03/31/2006 12:43:30
Thank you very much!
I didn't list the hostname in httpd.conf.Now I fixed it.


On 3/31/06, Steven M. Bellovin <smb@cs.columbia.edu> wrote:
> 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
>


--
Xianwen Chen
College Of Economics And Trades,Shanghai Fishiries University
Shanghai,China
086-21-68022471
apple45@gmail.com