Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-12-2004, 04:23 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
Apache gives [alert] mod_unique_id: unable to gethostbyname ("")

Hello all,

I've been trying to get Apache 1.3.27 up and running, but I keep hitting the same wall:

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

I've tried to set the httpd.conf's ServerName to my ip addy,, but it isn't recognized. I've added the line to my /etc/hosts and added the addy to my Listen line in my httpd.conf, and my hostname file is blank, as is evidenced by the (none). I don't have any exotic hardware, just an external cable modem that goes straight to eth0, and I'm running an otherwise well-behaved Slack 9.0. I can SSH into, so I know that I am up and on the network, I just can't seem to get the httpd server up. There have been several threads on that have helped (the thread with postid=584485#post584485 was particularly informative, if not helpful), but most of those fixes have not helped.

Any help recieved will be greatly appreciated,

Old 08-12-2004, 10:30 PM   #2
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
This doesn't appear to have anything to do with Wireless, so I'll put it in here.
Old 08-13-2004, 04:19 AM   #3
LQ Newbie
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Yes, thank-you; I did put it in the wrong forum.
Old 08-13-2004, 06:01 PM   #4
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
ServerName is used to set your servers name not it's IP.
Syntax: ServerName fully-qualified-domain-name
This problem is certainly a name lookup problem. See if you can resolve your ip address using nslookup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 10:33 PM
Unable to start Apache "Cannot load /etc/httpd/modules/" dagalicous Linux - Software 1 03-10-2005 02:43 AM
gethostbyname("localhost") sds Linux - Networking 4 01-06-2005 06:25 AM
Gnome oddity - Several "desk guide alert"s, don't know why streetrodder Linux - General 1 11-23-2004 03:39 PM
Apache not starting properly -- "unable to gethostbyname" ColoRambler Linux - Newbie 8 04-25-2004 12:49 AM

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration