From owner-freebsd-questions@FreeBSD.ORG Tue May 2 10:00:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 020F216A411 for ; Tue, 2 May 2006 10:00:50 +0000 (UTC) (envelope-from exiaf_radar_guy38@yahoo.co.in) Received: from web8906.mail.in.yahoo.com (web8906.mail.in.yahoo.com [203.84.221.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 2841B43D46 for ; Tue, 2 May 2006 10:00:48 +0000 (GMT) (envelope-from exiaf_radar_guy38@yahoo.co.in) Received: (qmail 73328 invoked by uid 60001); 2 May 2006 10:00:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SIieXT0VXt0rM/IomOMDKfb1nz4oJ0o3jkC/ZQxHBiLr8Oai5sRIPK/c0QQR1jVb4Wd0F1xaJ5zjEyne6RwKoRomrT1Cz4FjpT76JRYIgrgQjypnYLp4yk/4sXfn5+NCWi8S6FDkDlZWgV2ZI1bXpx1JvYXJNBieRCZwSoJHfpQ= ; Message-ID: <20060502100047.73326.qmail@web8906.mail.in.yahoo.com> Received: from [203.134.201.168] by web8906.mail.in.yahoo.com via HTTP; Tue, 02 May 2006 11:00:47 BST Date: Tue, 2 May 2006 11:00:47 +0100 (BST) From: dharam paul To: dharam paul , robert In-Reply-To: <20060502084717.42225.qmail@web8902.mail.in.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd Subject: RESOLVED: apache not starting: FreeBSd 5.4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2006 10:00:50 -0000 It is resolved. /etc/hosts file had to be amended as under: ---------------------- ::1 localhost.alfanet.com > localhost > 127.0.0.1 localhost.alfanet.com > localhost > 192.168.1.14 cathy.alfa.net localhost ---------------------- Thanks friends, regards --- dharam paul wrote: > > It seems to be a pure problem of hostname. I have > now > given the hostname 'cathy.alfa.net' in my > '/etc/hosts' > and '/etc/rc.conf' file. The contens os both the > files > are as under: > Here 192.168.1.14 is the ip of the machine running > apache. > The output of /etc/rc.conf file is confusing me > because it lists the hostname more than once. > /etc/hosts--> > ----------- > ::1 localhost.alfanet.com > localhost > 127.0.0.1 localhost.alfanet.com > localhost > 192.168.1.14 cathy.alfa.net > ---------------- > /etc/rc.conf---> > ------------ > ~ > ~ > ~ > :q! > cathy@alfa# vi /etc/rc.conf > # -- sysinstall generated deltas -- # Thu Apr 20 > 00:45:45 2006 > # Created: Thu Apr 20 00:45:45 2006 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to > /etc/defaults/rc.conf. > # This file now contains just the overrides from > /etc/defaults/rc.conf. > defaultrouter="192.168.1.1" > hostname="cathy.alfa.net" > #hostname="cathy@alfa.alfanet.com" > ifconfig_rl0="inet 192.168.1.14 netmask > 255.255.255.0" > ipv6_enable="YES" > linux_enable="YES" > moused_enable="YES" > saver="blank" > #sendmail_enable="NONE" > sshd_enable="YES" > usbd_enable="YES" > #apache_enable="YES" > squid_enable="YES" > samba_enable="YES" > #dansguardian_enable="YES" > # -- sysinstall generated deltas -- # Thu Apr 20 > 01:39:35 2006 > ifconfig_rl0="inet 192.168.1.14 netmask > 255.255.255.0" > ipv6_enable="YES" > defaultrouter="192.168.1.1" > hostname="cathy@alfa.alfanet.com" > # -- sysinstall generated deltas -- # Sat Apr 22 > 23:00:07 2006 > ifconfig_dc0="inet 192.168.1.16 netmask > 255.255.255.0" > ipv6_enable="YES" > defaultrouter="192.168.1.1" > hostname="cathy@alfa.alfanet.com" > # -- sysinstall generated deltas -- # Tue Apr 25 > 17:25:23 2006 > defaultrouter="192.168.1.1" > hostname="cathy@alfa.alfanet.com" > ----------- > > Present situation is that 'apachectl start' does not > output anything as if it had been successfully > executed. But when I check with 'apachectl status' I > get following error: > Looking up localhost > Making HTTP connection to localhost > Alert!: Unable to connect to remote host. > > lynx: Can't access startfile > http://localhost/server-status > > Thanks for help please. > > > > __________________________________________________________ > > Yahoo! India Answers: Share what you know. Learn > something new. > http://in.answers.yahoo.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new. http://in.answers.yahoo.com