I tried things like "brew install homebrew/apache/httpd24" but nothing seems to retrieve the "/etc/apache2" folder. What can I do?
Asked
Active
Viewed 1,478 times
2
-
Sounds like you are on a Mac. Do you have Time Machine backups? Depending on how you deleted the folder, it may also still be in Trash. – Thilo Nov 03 '15 at 01:28
-
Yes I'm on a mac. I don't have a backup and it's not in the trash. Is there a way to re-install it? – aleonstackoverflow Nov 03 '15 at 01:34
-
Homebrew doesn’t write outside of `/usr/local` so it won’t help you get your `/etc/apache2` folder back. – bfontaine Nov 03 '15 at 14:31
-
1@aleonstackoverflow Did you find a way to reinstall it? I just accidentally deleted /etc/apache2 as well. – sgr12 May 16 '17 at 07:30
1 Answers
9
if you're on Ubuntu 14.04, this worked for me , you can check :
sudo apt-get remove --purge apache2 apache2-utils
sudo apt-get install --reinstall apache2 apache2-utils

Yash Jain
- 195
- 4
- 9