From owner-freebsd-questions@FreeBSD.ORG Tue May 2 08:47:21 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 9FA0016A400 for ; Tue, 2 May 2006 08:47:21 +0000 (UTC) (envelope-from exiaf_radar_guy38@yahoo.co.in) Received: from web8902.mail.in.yahoo.com (web8902.mail.in.yahoo.com [203.84.221.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F53343D46 for ; Tue, 2 May 2006 08:47:20 +0000 (GMT) (envelope-from exiaf_radar_guy38@yahoo.co.in) Received: (qmail 42227 invoked by uid 60001); 2 May 2006 08:47:17 -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=ssSM/gWZx10At9gBfn2g5x0EfRuQnt8i2nNhma116HjoYGnSLmzjKET7IzGmXGsBq8JWRiM1GFfs+hvn7f+ljh6edunOJEuB4Gdn8RZNRbwEvZV5AN0SeNfH00QITg347Wo9Oa/T6nVUuYlUQGvPMf2cp0jE6yo/M4PjdZNp+vQ= ; Message-ID: <20060502084717.42225.qmail@web8902.mail.in.yahoo.com> Received: from [203.134.201.168] by web8902.mail.in.yahoo.com via HTTP; Tue, 02 May 2006 09:47:17 BST Date: Tue, 2 May 2006 09:47:17 +0100 (BST) From: dharam paul To: robert In-Reply-To: <1146496797.9348.23.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd Subject: Re: 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 08:47:21 -0000 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