Created
March 1, 2017 22:13
-
-
Save nguyenthanhtung88/804a103ad72c70245e33b2b52b972a84 to your computer and use it in GitHub Desktop.
Remove Apache2 in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Stop apache service: | |
``` | |
sudo service apache2 stop | |
``` | |
2. Remove and clean up all apache2 packages: | |
``` | |
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common | |
``` | |
3. Cleanup | |
``` | |
sudo apt-get autoremove | |
``` | |
4. Check any configuration files have not been removed | |
``` | |
whereis apache2 | |
``` | |
5. If you see response `apache2: /etc/apache2`, remove them: | |
``` | |
sudo rm -rf /etc/apache2 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment