Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
determine the server's fully qualified domain name -- Solved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
W3BMAST3R101
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 197

PostPosted: Mon Jan 29, 2007 2:09 am    Post subject: determine the server's fully qualified domain name -- Solved Reply with quote

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
View user's profile Send private message
anxt
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 254
Location: Frozen Tundra, Canada

PostPosted: Mon Jan 29, 2007 5:37 am    Post subject: Reply with quote

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
View user's profile Send private message
W3BMAST3R101
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 197

PostPosted: Mon Jan 29, 2007 7:48 am    Post subject: Reply with quote

Sure enough that worked. thanks alot.

the w3b
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum