Help with Apache webserver configuration?


(Rick Casey) #1

Am somewhat new to Homebrew, but want to start using it with Apache, and have installed the httpd24 tap.

However, having problems bringing up local webserver…

The Homebrew version is controlling apache:
which apachectl
/usr/local/bin/apachectl
and httpd is running:
> ps -ax | grep http
shows (among other lines):
> 81 ?? 0:00.42 /usr/local/opt/httpd24/bin/httpd -D FOREGROUND
but when I try in my browser: localhost
I get:
Forbidden
You don’t have permission to access / on this server.

And when I type:
apachectl --help
I get:
AH00112: Warning: DocumentRoot [/usr/local/opt/httpd24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [/usr/local/opt/httpd24/docs/dummy-host2.example.com] does not exist
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

So, question:

Is the httpd.conf file for the Homebrew version of apachectl still in the usual /etc/apache2/httpd.conf?

I have not been able to find any Homebrew documentation about this…

TIA,
rick


(Mike McQuaid) #2

It’ll be somewhere in /usr/local/etc instead.