johansatge / pawnee

🪶 An Apache GUI for OSX.
MIT License
94 stars 14 forks source link

Pawnee and brew httpd #10

Open CallumEddisford opened 6 years ago

CallumEddisford commented 6 years ago

[Enhancement] Just wondering whether we can customise the path to which .conf file Pawnee looks at and/or which apache install.

On my set up I use brew for everything and got rid of the built in apache then installed via brew: brew install httpd

I've tried a few things such as creating a symlink to the directory specified in the readme and got it almost working but i get halted with an apache error: AH00534: httpd: Configuration error: More than one MPM loaded.

I know what you're thinking, don't use more than one MPM... Well over to my httpd.conf..

#LoadModule mpm_event_module lib/httpd/modules/mod_mpm_event.so
LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so
#LoadModule mpm_worker_module lib/httpd/modules/mod_mpm_worker.so

I can switch to another MPM and it works, but its unsupported by brew:

Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  Homebrew PHP does not support a thread-safe php binary. To use the PHP apache sapi please change your httpd config to use the prefork MPM
AH00013: Pre-configuration failed

I'm gonna try a few more things from source and see if I can fix it, unless anyone has any alternate ideas.

Thanks,

Callum