14. My Ideal Solution
• Runs in the foreground. Start, stop, go away.
• Easily use different configurations per project.
• Uses easily installable services (homebrew).
17. #
# Minimal httpd.conf for running apache in the foreground for local php
# development.
#
# Setup:
# 1. Place this file in the root of your project.
# 2. Make sure the ./tmp directory exists (for the pid and lock files).
# 3. Update the DocumentRoot and Directory directives with the relative path to
# your project's document root.
#
# Usage:
# httpd -d . -f httpd.conf -DFOREGROUND
#
# Relative file paths in this file are relative to the server root, which is
# assumed to be set from the command line option, as in the about usage.
#
ServerName localhost
Listen 8080
PidFile tmp/httpd.pid
LockFile tmp/accept.lock