- Disable & remove the default apache2 service macOS ships with using the following commands:
$ sudo apachectl stop
$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
- Restore the old httpd.conf file with the following commands:
$ cd /etc/apache2/
$ sudo mv httpd.conf httpd.conf.OLD
$ sudo mv httpd.conf~previous httpd.conf
$ sudo apachectl restart
- Restart apache2 (brew)
$ sudo brew services restart httpd
Done!