While trying to set up my local host environment, I deleted my apache2 folder using the terminal command
rm -rf etc/apache2. How can I revert to default apache2 settings? I am thinking of reinstalling my Mac OS in recovery mode – is that a good idea?
Reinstalling the entire OS seems like overkill. If you have another mac running mojave you can just copy the
/etc/apache2 directory over from it. It looks like the only machine-specific settings are in
/etc/apache2/users which have a file per username called
/etc/apache2/users/USERNAME.conf and look like
<Directory "/Users/USERNAME/Sites/"> Options Indexes MultiViews Require all granted </Directory>