Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Apache on a Mac, and all of the sudden http://localhost results in Apache's HTDOCS folder, while for some time now it correctly referred to my Sites folder.

Running apachectl -D DUMP_HOSTS yields:

(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address
no listening sockets available, shutting down
Unable to open logs

Some HTTPD.CONF settings:

Listen 80

DocumentRoot "/Users/[username]/Sites"

<VirtualHost *>
    DocumentRoot "/Users/[username]/Sites"
    ServerName localhost


share|improve this question

Strange. Do you maybe have two instances of httpd running? Try shutting down all instances (check with ps or similar they are all gone), then restart, then check again.

Is it possible an upgrade replaced your httpd with a new version that reads a different httpd.conf?

share|improve this answer
Good lead! Can you please direct me to the command you suggested? – konzepz Oct 12 '09 at 10:41
ps -lax should do it. As for restarting apache on Mac OS, just check your documentation. – sleske Oct 12 '09 at 11:16
"/usr/sbin/httpd -D FOREGROUND" is showed 4 times. Is that it? – konzepz Oct 12 '09 at 11:24
Also "opt/local/apache2/bin/httpd -k start" -- 6 times. – konzepz Oct 12 '09 at 11:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.