From owner-freebsd-questions@FreeBSD.ORG Mon Sep 13 08:31:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D3C216A4CE for ; Mon, 13 Sep 2004 08:31:00 +0000 (GMT) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id C702843D53 for ; Mon, 13 Sep 2004 08:30:52 +0000 (GMT) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (localhost [127.0.0.1]) i8D8IaRc078393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Sep 2004 01:18:36 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from localhost (dirkx@localhost)i8D8IaVw078390; Mon, 13 Sep 2004 01:18:36 -0700 (PDT) (envelope-from dirkx@webweaving.org) X-Authentication-Warning: skutsje.san.webweaving.org: dirkx owned process doing -bs Date: Mon, 13 Sep 2004 01:18:36 -0700 (PDT) From: Dirk-Willem van Gulik X-X-Sender: dirkx@skutsje.san.webweaving.org To: Sujit Dey In-Reply-To: <20040912162939.M96962@rebaca.com> Message-ID: <20040913011101.L77706@skutsje.san.webweaving.org> References: <20040912160216.M11079@rebaca.com> <20040912162939.M96962@rebaca.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org cc: " "@freebsd.org Subject: Re: can't start Apache 1.3 server in freeBSD 4.9 release #0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 08:31:00 -0000 On Sun, 12 Sep 2004, Sujit Dey wrote: > 127.0.0.1, but using "/usr/local/sbin/apachectl start", can't start > the Apache server. It is giving httpd can not be started. I followed > [alert] mod_unique_id: unable to gethostbyname() Set the hostname in /etc/rc.conf (add 'hostname='www.foo.com' in the /etc/rc.conf file), # /etc/rc.conf ... hostname="www.foo.com" and/or add it to the /etc/hosts file as # /etc/hosts ::1 localhost localhost.foo.com www.foo.com 127.0.0.1 localhost localhost.foo.com www.foo.com and/or edit /usr/local/etc/apache/httpd.conf and uncomment and set the value in 'ServerName' in the top 1/3 of the file: #/usr/local/etc/apache/httpd.conf .... # # ServerName allows you to set a host name which is sent back to clients for # your server if it's different than the one the program would get (i.e., use # "www" instead of the host's real name). # # Note: You cannot just invent host names and hope they work. The name you # define here must be a valid DNS name for your host. If you don't understand # this, ask your network administrator. # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address (e.g., http://123.45.67.89/) # anyway, and this will make redirections work in a sensible way. # # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your # machine always knows itself by this address. If you use Apache strictly for # local testing and development, you may use 127.0.0.1 as the server name. # ServerName www.foo.com .... Dw.