Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on ubuntu 10.04, somehow I deleted all the files in /usr/lib/apache2/modules, is there a way I can get them back or set it to default installation?

share|improve this question
Restore from your backup. – John Gardeniers Aug 8 '10 at 21:26

To generate a list of the apache related packages you have installed:

 $ dpkg -l | grep apache

To search the files that are associated with each package:

$ dpkg -L <package name> | grep  /usr/lib/apache2/modules

To reinstall packages that match the search:

$ sudo apt-get --reinstall install <package name>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.