[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: httpd failed
- Subject: Re: httpd failed
- From: Sudhakar Chandrasekharan <thaths@xxxxxxxxxxxx>
- Date: Wed, 30 Jun 1999 10:49:10 -0700
Rajesh Fowkar proclaimed:
> I have installed Red Hat Linux 6 from CHIP CD.
>
> My problem is when I start linux the various services get started and while
> starting httpd I get the following error :
>
> Starting http: [ failed ]
> httpd:cannot determine local hostname
> Use the Servername Directive to Set it manually.
What does
$ hostname
tell you? What do you have in /etc/hostname, /etc/hosts and
/etc/resolv.conf ?
Looks like programs on your computer cannot determine the hostname. Read
the man page for hostname and set it (logged in as root).
> after this the machine boots as usual and while shutting down again I get the
> following message :
>
> shutting http [failed]
> This may be because the http service was not started properly while booting.
This is obvious. httpd was not started. So it was not possible to shut it
down.
> Why is this happening ? What should I do to rectify it ?
Here are the contents of the relevant files in my case. Change according
to your particular setup.
$ cat /etc/hostname
www
$ cat /etc/hosts
216.103.113.202 www.aunet.org www
$ cat /etc/resolv.conf
# PacBell Entries
domain aunet.org
search aunet.org pacbell.net pacbell.com
nameserver 206.13.28.12
nameserver 206.13.31.12
nameserver 206.13.29.12
Thaths
- --
"If you really want something in life you have to work for it. Now quiet!
They are about to announce the lottery numbers." -- Homer J. Simpson
Sudhakar C13n http://people.netscape.com/thaths/ Lead Indentured Slave
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
------------------------------