I am working on Mac OS 10.5.6 Leopard. Today I recognized, that every 10 seconds Apache forced the following error messages to appear in my console.log:
org.apache.httpd (13)Permission denied: make_sock: could not bind to address [::]:80
org.apache.httpd (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
org.apache.httpd no listening sockets available, shutting down
org.apache.httpd Unable to open logs
com.apple.launchd (org.apache.httpd) Exited with exit code: 1
com.apple.launchd (org.apache.httpd) Throttling respawn: Will start in 10 seconds
After searching the web for this error(s), I got rid that somehow the httpd- service tries to listen on port :80, but which is already listened on by something else. The message “Unable to open logs” may refer to that Apache was not started with root-privileges, but which it needs to startup properly.
I was able to fix this error lines by doing the following steps:
- Go to my System Preferences.app and open “Sharing” pane. Disabling the Web-Sharing service.
- Launch Terminal.app and stopping httpd (apache) with the following command:
sudo apachectl -k stop
- Going into the Activity Monitor.app and searching for “httpd”. Select both processes and click on “Stop”.
- Shutdown and start my Mac (do a proper shutdown, not restart!)
- When Mac was back up running: go in to Terminal.app and execute:
sudo apachectl -k start
Now Apache was running again and no more errors appeared in the console.log!
However, I noticed the “Web-Sharing” service in the Sharing panel to be still inactive, even if Apache IS running. I let it this way, because the Web Server was available. And I even guess that this service was the cause of the before mentioned errors.