# Start by stopping the built-in Apache, if it's running, and prevent it from starting on boot.
# This is one of very few times you'll need to use sudo:
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist 2> /dev/null
# Install Apache 2.4 with the event MPM and HTTP/2 support
brew install -v homebrew/apache/httpd24 --with-mpm-event --with-http2