3 Replies Latest reply: Jun 4, 2009 9:13 PM by Camelot
erich13apple Level 1 (0 points)
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)
  • MrHoffman Level 6 (14,757 points)
    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
  • Camelot Level 8 (46,650 points)
    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
  • erich13apple Level 1 (0 points)
    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”.