php - Every new installation I get all old corrupted files of apache -


every new installation old corrupted files old folder not working me. apache2.conf file corrupted when uninstall apache2 using purge & clean command , install new apache2 every time old installed files.

apache2 meta-package selects other packages. if installed apache installing package, need run clean automatically selected packages:

sudo apt-get autoremove 

if doesn't work, might have installed 1 of dependents manually. can target apache2- packages space , nuke lot:

sudo apt-get remove apache2* 

for future reference, find out package binary from, can run this:

dpkg -s `which apache2` 

i'd expect come apache2.2-bin

also try following command uninstall , remove configuration files. need stop apache service before uninstall.

sudo apt-get purge apache2*  sudo apt-get --purge remove apache2  apt-get remove apache2-common 

if have service running not installed (according apt), stop service , reinstall, issue command above.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -