14

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

felix46r
  • 249

1 Answers1

34

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"
LnxSlck
  • 12,456