Advertisement

Troubles with apache

Started by May 05, 2004 02:11 PM
2 comments, last by Monder 20 years, 5 months ago
I''ve just installed the latest version of apache 1.3 on my Free BSD system via ports. However when I try to start it up using apachectl start it says httpd is unable to start. Looking at the httpd error log file it says it cannot perform GetHostByName("BlueMidget"), BlueMidget is the hostname I use for my BSD box, so basically it can''t find the IP address of the hostname I use. Seeing as my ServerName in my apache config file is not BlueMidget why does it even need to look up it''s IP address anyway? Even if it does shouldn''t it work fine? Does anyone know how I can get apache to run?
you need to set the server name to the actual addressable server name:

www.bluemidgit.com or whatever you have your server registered as. alternitively i believe you can set it to the IP address of the host, whatever it may be on your internal network (in the case that it''s not actually publically addressable). but don''t quote me on that IP part, it''s been a while since i configured my apache.

-me
Advertisement
Take a look in your /etc/hosts file and make sure BlueMidget has an ip address set. If you still can not figure it out I''ll show you my Fbsd box setup with apache.

Thanks,

optics
Well I''ve plonked BlueMidget in the hosts file and it''s working fine now, thanks.

This topic is closed to new replies.

Advertisement