1

I deleted apache.conf with command rm /etc/apache2/apache2.conf so what are my options? How can I get it back?

2 Answers 2

6

If you want to get the same file back you may have to use some sort of recovery software.

If not, this will do the trick:

sudo apt-get remove --purge apache2 apache2-utils
sudo apt-get install --reinstall  apache2 apache2-utils
1
1

There can be two possible solutions

  1. Uninstall and reinstall apache server
  2. Find the specific file and paste it in the required directory. You can find one here
1
  • The page url is broken Oct 10, 2021 at 22:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .