Contents
How do I completely remove apache2?
2 Answers
- First stop the apache2 service if it is running with: sudo service apache2 stop.
- Now remove and cleanup all the apache2 packages with: sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common //or sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common.
How do I permanently disable Apache?
Stop Apache from Starting on Linux
- Open the terminal application.
- Login using ssh for remote server. …
- Use sudo systemctl disable httpd && sudo systemctl stop httpd on RHEL/CentOS/Oracle/Fedora Linux.
- Ubuntu/Debian users run sudo systemctl disable apache2 && sudo systemctl stop apache2 command.