Linux – Completely removing apache + phptheadmin + php from Ubuntu

linuxphpmyadminUbuntu

I am trying to completely remove apache + phpmyadmin + php from my Ubuntu operating system. For phpmyadmin i tried

 sudo apt-get autoremove phpmyadmin 

but the files were still in the /etc/ folder. So I tried

 sudo rm -rf phpmyadmin 

However I am not sure if this does the job or still leaves stuff behind?

for Apache I opened the Ubuntu Software centre and tried to uninstall all the apache components but I can still go to localhost and it works? I also tried the same autoremove command but localhost still works.

Best Answer

You should use --purge like this

apt-get --purge remove PACKAGE

in order to remove configuration files when you remove packages. It works even with autoremove.

For further information you can read

man apt-get

(obviously you need root privileges)

Related Question