Inspired by http://jason.pureconcepts.net/2014/11/configure-apache-virtualhost-mac-os-x/
Stop apache, remove launch daemon, install apache from Homebrew.
$ sudo apachectl stop
$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
$ brew install httpd24 --with-privileged-ports --with-http2
Copy launchdaemon to launchdaemons folder, set permissions, start apache.
$ sudo cp -v /usr/local/Cellar/httpd24/[your-apache-version]/homebrew.mxcl.httpd24.plist /Library/LaunchDaemons
$ sudo chown -v root:wheel /Library/LaunchDaemons/homebrew.mxcl.httpd24.plist
$ sudo chmod -v 644 /Library/LaunchDaemons/homebrew.mxcl.httpd24.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.httpd24.plist
$ brew install php55 --with-httpd24
$ brew unlink php55
$ brew install php56 --with-httpd24
$ brew unlink php56
$ brew install php70 --with-httpd24
$ brew unlink php70
$ brew install php71 --with-httpd24
ini
s are located here:
/usr/local/etc/php/5.5/php.ini
/usr/local/etc/php/5.6/php.ini
/usr/local/etc/php/7.0/php.ini
/usr/local/etc/php/7.1/php.ini
Unsigned SSL: https://getgrav.org/blog/macos-sierra-apache-ssl
Trusted SSL: https://gist.github.com/ethicka/1ba103638d92974487b2