apache not starting: FreeBSd 5.4

dharam paul exiaf_radar_guy38 at yahoo.co.in
Tue May 2 08:47:21 UTC 2006


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 at 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 at 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 at 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 at alfa.alfanet.com"
# -- sysinstall generated deltas -- # Tue Apr 25
17:25:23 2006
defaultrouter="192.168.1.1"
hostname="cathy at 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


More information about the freebsd-questions mailing list