On Fri, 31 Mar 2000 13:09:41 -0500, 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.
>
>feng

On Sat, 1 Apr 2000 16:20:58 +0400 (SCT), I (i.e. nijbhav) wrote:

>> 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.

        I have more information regarding linuxconf and hostname.
Linuxconf edits one more file apart from /etc/HOSTNAME and this is
/etc/sysconfig/network which is the file init looks ( look at
/etc/rc.d/rc.sysinit) when setting hostname on bootup time if
you have set up networking. httpd may derive the information (I am not
sure) of hostname from the environment variable HOSTNAME set by it.


Reply via email to