Super User is a question and answer site for computer enthusiasts and power users. 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 accidentally broke my apache2 install, and was wondering if I could completely remove apache2 and everything related to it, and then completely reinstall it starting from scratch?

share|improve this question
If you have error messages, please add them to your question. – mveroone Apr 22 '14 at 7:31

Have you tried dpkg --purge PACKAGENEMAE? This should remove the package with all it's config files.

share|improve this answer
Sorry I will make my install setup clearer. I have a dedicated box running debian squeeze with webmin for administration. It was working but now it throws errors when I want to start apache. Odd things about errors in apache2.conf. I got it to reinstall (I think) but it didn't make an apache2.conf so webmin now complains bitterly. P.S. I think I may just reinstall debian again and follow the tutorial at this weekend when I have time. P.P.S. Is there a way to remotely install debian with out massive terminal hacking? – ellisgeek Mar 1 '11 at 15:21
Maybe you could post the error messages on or even better update your question? Normally dpkg --purge and afterwards dpkg --install should reset the package to its basic state. Maybe if only the configuration is broken try dpkg --configureto try and fix the configuration. – Darokthar Mar 1 '11 at 15:51

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.