View previous topic :: View next topic |
Author |
Message |
W3BMAST3R101 Apprentice
Joined: 19 Jun 2004 Posts: 197
|
Posted: Mon Jan 29, 2007 2:09 am Post subject: determine the server's fully qualified domain name -- Solved |
|
|
I'm having an apache error that spits out:
* Starting apache2 ...
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Here is my /etc/conf.d/net
dns_domain_lo="unix"
and here is my /etc/conf.d/hostname
HOSTNAME="Mythtv-Gentoo"
and here is my /etc/hosts
127.0.0.1 localhost
192.168.1.4 localhost
Could any one tell me how to specify the correct ipaddress?
thnx,
the w3b
Last edited by W3BMAST3R101 on Mon Jan 29, 2007 7:49 am; edited 1 time in total |
|
Back to top |
|
|
anxt Apprentice
Joined: 25 Feb 2003 Posts: 254 Location: Frozen Tundra, Canada
|
Posted: Mon Jan 29, 2007 5:37 am Post subject: |
|
|
192.168.1.4 my.cool.apache.tld in /etc/hosts
or from the quick install guide:
Code Listing 2.18: Set host and domain name
livecd / # cd /etc
livecd etc # echo "127.0.0.1 mybox.at.myplace mybox localhost" > hosts
livecd etc # sed -i -e 's/HOSTNAME.*/HOSTNAME="mybox"/' conf.d/hostname
(Use defined host name and check)
livecd etc # hostname mybox
livecd etc # hostname -f
mybox.at.myplace |
|
Back to top |
|
|
W3BMAST3R101 Apprentice
Joined: 19 Jun 2004 Posts: 197
|
Posted: Mon Jan 29, 2007 7:48 am Post subject: |
|
|
Sure enough that worked. thanks alot.
the w3b |
|
Back to top |
|
|
|