On Fri, 31 Mar 2000 13:09:41, Hong F Du wrote:
>Greetings,
>I get error messages at redhat 6.1 bootup saying "httpd: cannot
>determine local host name" " Use the ServerName directive to set it
>manuallly" "httpd startup failed"

>What is wrong with it? How should I fix it. Thanks a lot in advanced.
>
        I think the problem can be solved my simply editing the 
/etc/hosts and /etc/HOSTNAME files suitably to your server name.
Usually configuration tools like linuxconf work in a curious manner
when we change the hostname. This simply changes the file /etc/HOSTNAME
and leaves /etc/hosts untouched! (Can anyone tell me if there is any
valid reason behind this behaviour?) httpd derives its host information
from these files and if they have conflicting informations, the error
is reported.
        For example, my hostname is 'avinash' and the two files look like
this:
/etc/HOSTNAME
avinash
/etc/hosts
127.0.0.1       localhost.localdomain   localhost avinash

        Now if the fields for 'avinash' in both the files contain two
different names, the problem is reported. (This is what might have
happened to you and this is what happens when we configure hostname
using linuxconf.)




Reply via email to