how to uninstall apache2 ubuntu
apt-get remove apache2 // to uninstall
apt-get purge apache2. It will remove the all config files
apt-get autoremove // to clean the files
sudo rm -rf /etc/apache2 // manually deleting the files
how to uninstall apache2 Debian
uninstall
sudo apt-get remove apache2
Uninstall without leaving configuration files
apt-get purge apache2.
To clean the files
apt-get autoremove
apt-get autoremove will only remove files which are not in use by any installed package.
sudo rm -rf /etc/apache2 // manually deleting the files
apache2 automatically installed while installing phpmyadmin ang nginx won’t start becuause port 80 a;eadry occupied, so ihave to stop apache 2 inorder to run nginx.
also know Uninstall a Linux pacakge