Forum Moderators: phranque

Message Too Old, No Replies

Name or service not known: alloc listener

failed to set up sockaddr

         

cbsimms

10:35 am on Dec 17, 2009 (gmt 0)

10+ Year Member



I am new to installing Apache.

I have just installed Apach2.2 on linux and once I got the host name correct and entered this in the httpd.conf I get the following error:
[Thu Dec 17 10:09:12 2009] [crit] (EAI 2)Name or service not known: alloc_listener: failed to set up sockaddr for smrtvsvn01.smart421.com
Syntax error on line 40 of /usr/local/apache2/conf/httpd.conf:
Listen setup failed

Is there any guide how to get Apache up and running for beginners?

Cheers
Charlie

jdMorgan

2:06 pm on Dec 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are many on-line set-up guides for Apache which can be found by searching, You'll likely also find many books on the subject at stores where technical books are sold. Please don't expect this to be quick and easy -- It's not, and it will likely require at least a few days of reading to get up to speed on the server. However, since the future of your site (and perhaps your sanity) depend on getting the server set-up 100% correct, it's well worth your investment of time. Many Web sites are 'doomed' from the start and will never work reliably and/or rank well in search because proper care wasn't taken in setting up the server.

For the present problem, go to line 40 of /usr/local/apache2/conf/httpd.conf, find the "Listen" directive there, and examine the syntax of that directive and the value of the arguments of that directive, checking it against the Apache documentation for Apache 2.2. If in doubt, you're welcome to post that line (and immediately-surrounding lines) here for discussion.

Jim