c2ed
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi there, I'm new to FreeBSD and Unix.
I'm using FreeBSD 7.1 and am trying to configure Apache 5.0 on my FreeBSD box. I keep getting this error in /var/log/httpd-error.log mod_unique_id: unable to gethostbyname("") and am unable to get Apache to start. I sort of understand the group of files this error deals with, but I don't understand why I'm getting no paramaters in gethostbyname(). typing in ]$ hostname comes up empty also I'm just setting up this server for use with machines on my local network, so I don't have a domain to enter, and have been using my local network IP address in all the configuration files. Anyway, any human input on this might stop me from going premature grey. ![]() Thanks |
|
#2
|
||||
|
||||
|
Put:
Code:
hostname="your.domain.here" |
|
#3
|
||||
|
||||
|
Sysinstall can be also be used for this task. Go to Configure −−> Networking −−>Interfaces −−> "your NIC".
|
|
#4
|
||||
|
||||
|
Does a ping to the hostname work?
You might need to add a hostname reference to the ip of the httpd server in /etc/hosts like 192.168.0.1 myserver myserver.my.domain |
|
#5
|
|||
|
|||
|
Quote:
Thanks, this fixed it. I had the /etc/rc.conf entry as hostmame="192.xxx.x.x" But forgot to reboot the machine. After reboot this morning, Apache was up and running. Thanks for everyone's help. |
![]() |
| Tags |
| apache 5.0, gethostbyname, hostname |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Installation from FTP: cannot resolve hostname ftp... | Erratus | Installing & Upgrading | 20 | June 29th, 2010 18:25 |
| Apache | bamcis | Web & Network Services | 14 | March 8th, 2009 01:09 |
| Apache, SSLMutex? | bliz0r | Web & Network Services | 1 | February 12th, 2009 07:36 |
| Apache reload | Enter4 | Web & Network Services | 3 | January 28th, 2009 21:33 |