- 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/