Re: httpd error starting Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am So, den 11.04.2004 schrieb Ronald Hahm um 14:48:

> When starting Apache I get the following error.
> 
> httpd: Could not determine the server's fully qualified domain name, using 
> 127.0.0.1 for ServerName
> 
> I cannot seem to figure out what is wrong in my httpd.conf file.

The machine's hostname can not be evaluated to be a FQDN, which is a
must. So you are requested to set the ServerName instruction in
httpd.conf (grep -n ServerName /etc/httpd/conf/httpd.conf). The fault is
not primary a wrong httpd.conf configuration but a not valid
configuration of your hostname / network.

> I have the following in my resolv.conf file.
> 
> search localdomain.net

Not a really good choice, because localdomain.net exists and is public
resolvable:

Name:   localdomain.net
Address: 216.173.218.52

> nameserver 192.168.1.2

Well, from that I can assume you have a small home network. Therefor all
machines in the LAN shall have a unique private IP address _and_ a
hostname: not being named localhost but having a FQDN (fully qualified
domain name). That name has not to be officially resolvable, it is local
for you. So your private LAN may use the domain name home.lan and
following that the FC1 machine may have the FQDN fedora.home.lan.
Speaking that you should have set up your local name server to be master
for that domain and - which is important too! - you must have set the
/etc/hosts file proper too. Here with that example:

$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain   localhost
192.168.1.1             fedora.home.lan   fedora

fedora.home.lan is the FQDN long name, fedora the short name of the
host.

Of course the machine's hostname has to be set in /etc/sysconfig/network
in variable HOSTNAME (FQDN). Setting the hostname using command
"hostname" will just set it until reboot.

I recommend you set up your LAN like I described, because that would be
the way you would have to do in a public area too. If you prefer to
hack, then you might just adjust the hostname using the httpd.conf
instruction ServerName.

> Is there a FAQ somewhere that details how to fix this?  I could not find it.

The Apache2 documentation contains information about each configuration
instruction. For global information about network setups you will find
lots of help on www.tldp.org.

> Thanks.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2174.nptl
Sirendipity 17:47:14 up 23 days, 1:28, load average: 0.11, 0.42, 0.30 
                   [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - gnothi seauton ]
             my life is a planetarium - and you are the stars

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux