Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Possible Duplicate:
How can I replace missing configuration files after removing a package?

I have a problem in my apache2: And i exec sudo aptitude purge apache2, but in /etc/ the folder apache2 persist, after this, i move the apache2 to apacheold, and exec sudo aptitude install apache2, and this has been installed the command "apache2" but in the /etc/, the folder apache2 is not exist

share|improve this question

marked as duplicate by Lekensteyn, htorque, James Apr 3 '12 at 15:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


sudo apt-get --purge remove apache2
sudo apt-get autoremove

Then installing apache2 is as simple as:

sudo apt-get install apache2
sudo /etc/init.d/apache2 restart

To test it:

lynx "http://localhost"
share|improve this answer

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