Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

marked as duplicate by Lekensteyn, htorque, jrg 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.

1 Answer

First:

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
add comment

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