0

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 0.0.0.0:80
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
</VirtualHost>

HELP.

konzepz
  • 209
  • 1
  • 2
  • 7

1 Answers1

1

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?

sleske
  • 9,851
  • 4
  • 33
  • 44