Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jul 24, 2003 5:45 pm 
Offline
Senior Newbie

Joined: Sun Jun 29, 2003 9:09 pm
Posts: 18
I installed apache version 1.3.26 woody using apt-get, but the server won't start. I type the command "apachectl start" and it says "httpd could not be started". In the apache error.log it says:

[alert] mod_unique_id: unable to gethostbyname("(none)")

Any clues? Thanks.


Top
   
 Post subject:
PostPosted: Thu Jul 24, 2003 7:29 pm 
Offline
Senior Newbie
User avatar

Joined: Wed Jul 09, 2003 6:15 pm
Posts: 11
Your system hasn't been assigned a hostname yet. You must do that prior to starting Apache. Type

Code:
hostname your-hostname


and put your-hostname in /etc/hostname.


Top
   
 Post subject:
PostPosted: Sat Jan 29, 2005 7:54 am 
Offline
Senior Newbie

Joined: Sun Jan 23, 2005 11:43 am
Posts: 6
Here is what I get from /var/log/apache/error

Code:
mod_unique_id: unable to gethostbyname("node.tribalsage.com")


If i type hostname: node.tribalsage.com

Apache still wont start


Top
   
 Post subject:
PostPosted: Sat Jan 29, 2005 11:10 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Apache can't resolve the IP address that matches your host name.

You need to put at least this in your /etc/hosts:
Code:
127.0.0.1          localhost
aaa.bbb.ccc.ddd    hostname.domain.tld    hostname

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sat Jan 29, 2005 4:07 pm 
Offline
Senior Newbie

Joined: Sun Jan 23, 2005 11:43 am
Posts: 6
Im sure that would have fixed it. But as soons as the DNS info propogated apache managed to start up.

Thanks =)


Top
   
 Post subject:
PostPosted: Sat Jan 29, 2005 4:54 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Apache Documentation wrote:
don't configure Apache in such a way that it relies on DNS resolution for parsing of the configuration files

Check this out - httpd.apache.org/docs-2.0/dns-caveats - to avoid reliability problems (e.g. http server fails to start if DNS query times out during config file parsing) and possible DoS vulnerabilities with Apache.

Putting your own IP and host in /etc/hosts is the best way round this.

_________________
/ Peter


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group