I deleted apache.conf
with command rm /etc/apache2/apache2.conf
so what are my options? How can I get it back?
2 Answers
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
-
To find out name of the package containing this file:
dpkg -S /etc/apache2/apache2.conf
. See also: How to restore a single file from a package?– madneonMar 30, 2015 at 21:57
There can be two possible solutions
- Uninstall and reinstall apache server
- Find the specific file and paste it in the required directory. You can find one here