PDA

View Full Version : installed apache through ports but can't access localhost


koen
02-25-2006, 09:35 PM
I think I correctly installed apache 2.2 through the ports system. When I fire up my browser and go to localhost or 127.0.0.1 i get a can't connect message. Probably this is due to some error when I try to start apache with "apachectl start". The error reads:

httpd: apr_sockaddr_info_get() failed for PCBSD.localhost
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Feb 25 23:32:17 2006] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter


Help greatly appreciated.

antik
02-25-2006, 10:00 PM
I think I correctly installed apache 2.2 through the ports system. When I fire up my browser and go to localhost or 127.0.0.1 i get a can't connect message. Probably this is due to some error when I try to start apache with "apachectl start". The error reads:

httpd: apr_sockaddr_info_get() failed for PCBSD.localhost
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Feb 25 23:32:17 2006] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter


Help greatly appreciated.

Look into you apache configuration file for "ServerName" directive, uncomment it if it's commented, and insert here your machine name.
Or make sure your /etc/hosts file has an entry for your machine, or that there is a real DNS entry for your machine with an associated PTR record. Any of those things will fix it.

koen
02-26-2006, 12:22 AM
Thanks that helped.

The second message warning was solved by:

http://www.bitmand.net/handbook/httpready-accept-filter