Fresh Apache2 installation on Ubuntu

2019-09-27 14:50发布

问题:

I uninstalled a corrupted Apache2 on Ubuntu and when I re/install Apache2 it will restore the same files as the old one.

I want to do a fresh installation of apache2.

回答1:

It is not enough to use sudo apt-get uninstall, that will keep the configuration.
For a complete uninstall, use sudo apt-get purge apache2.

You may also be interested in reading this Q&A on the Ubuntu Stack Exchange site, which covers the same problem.