Date: Tue, 2 May 2006 11:00:47 +0100 (BST) From: dharam paul <exiaf_radar_guy38@yahoo.co.in> To: dharam paul <exiaf_radar_guy38@yahoo.co.in>, robert <bsd@bathnetworks.com> Cc: freebsd <freebsd-questions@freebsd.org> Subject: RESOLVED: apache not starting: FreeBSd 5.4 Message-ID: <20060502100047.73326.qmail@web8906.mail.in.yahoo.com> In-Reply-To: <20060502084717.42225.qmail@web8902.mail.in.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <exiaf_radar_guy38@yahoo.co.in> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060502100047.73326.qmail>