httpd could not be started

Tofik Suleymanov tofik at oxygen.az
Fri Jan 13 11:29:23 PST 2006


Steven Narmontas wrote:

>On Fri Jan 13 10:05:52 PST 2006, Kiffin Gish 
><kiffin.gish at planet.nl> wrote:
>
>  
>
>>On Fri, 2006-01-13 at 09:55 -0800, Steven Narmontas wrote:
>>    
>>
>>>...
>>>
>>>Everything to this point went smoothly!  I edited 
>>>/usr/local/etc/apache/httpd.conf ONLY to set the ServerName to 
>>>the IP address of the machine. However, when I try to start 
>>>apache I get:
>>>
>>>#/usr/local/sbin/apachectl start
>>>/usr/local/sbin/apachectl start: httpd could not be started
>>>
>>>      
>>>
>>Maybe httpd-error.log contains some suspicious-looking error 
>>messages?
>>
>>    
>>
>
>
>Of course it does! duh!
>
>For the record, the error messages in httpd-error.log read:
>
> [alert] mod_unique_id:unable to gethostbyname("xxxxx")
>
>where xxxx was the made-up host name I used during the install.
>
>I edited /etc/rc.conf to change hostname to a valid name, and 
>apache now starts fine.
>
>Thank you!
>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
You could just add it to /etc/hosts :)


More information about the freebsd-questions mailing list