Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

org.apache.httpd no listening sockets available, shutting down

Per instructions ( http://developer.apple.com/mac/articles/internet/phpeasyway.html), enabled "Web Sharing" for my client version of Leopard.

Then, clicked on my personal web site...

http://192.168.1.71/~erich/

And get...

Safari can’t connect to the server.
Safari can’t open the page “ http://192.168.1.71/~erich/” because Safari can’t connect to the server “192.168.1.71”.

Tried searching existing discussions, but could not find a viable solution.

Checked the Console and see...

6/4/09 4:57:37 PM com.apple.launchd[1] (org.apache.httpd) Throttling respawn: Will start in 10 seconds
6/4/09 4:57:37 PM org.apache.httpd[11788] no listening sockets available, shutting down
6/4/09 4:57:37 PM org.apache.httpd[11788] Unable to open logs
6/4/09 4:57:37 PM com.apple.launchd[1] (org.apache.httpd[11789]) Exited with exit code: 1

Repeating.

Any advice?

iMac, Mac OS X (10.5.7)

Posted on Jun 4, 2009 5:01 PM

Reply
3 replies

Jun 4, 2009 9:13 PM in response to erich13apple

If apache can't bind to the port then it typically means some other process is already listening on the web port.

You need to look at your server's configuration to see what address/ports it's trying to bind to and determine which other processes are listening on that port.

For example, if Apache is configured to listen on port 80, the following command will identify any process already using that port:

sudo lsof -i :80

Jun 4, 2009 9:26 PM in response to MrHoffman

MrHoffman wrote:
Is the local host the 192.168.1.71 host you are trying to connect to; are you connecting to self? If so, you can't connect to that IP host from that same local host. Use the host name localhost in place of that. http://localhost/whatever


I had already tried localhost, with the same results...

http://localhost/~erich/

Safari can’t connect to the server.
Safari can’t open the page “ http://localhost/~erich/” because Safari can’t connect to the server “localhost”.

org.apache.httpd no listening sockets available, shutting down

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.