When Apple runs their bundled apache (and with any other daemon where they can manage) the preferred model is to keep the daemon (at least master) from detaching. They pull this off with things like -D FORGROUND.
There are a few benefits of this
- The service can easily be terminated using launchctl.
- The service can automatically kept alive.
After seeing your recommendation http://wiki.bitnami.org/Native_Installers_Quick_Start_Guide#How_to_start_automatically_the_Stack_on_OS_X.3f I decided to poke around a little bit to see if it would be easy to get going. I started to run into some sort of environment issues. See below:
$ sudo /Applications/mampstack-5.3.15-0/use_mampstack
bash-3.2# httpd -t
dyld: Library not loaded: /bitnami/mampstack-osx-x86/output/apache2/lib/libaprutil-1.0.dylib
Referenced from: /Applications/mampstack-5.3.15-0/apache2/bin/httpd
Reason: Incompatible library version: httpd requires version 5.0.0 or later, but libaprutil-1.0.dylib provides version 4.0.0
Trace/BPT trap: 5
bash-3.2#