Skip to content

Instantly share code, notes, and snippets.

@nguyenthanhtung88
Created March 1, 2017 22:13
Show Gist options
  • Save nguyenthanhtung88/804a103ad72c70245e33b2b52b972a84 to your computer and use it in GitHub Desktop.
Save nguyenthanhtung88/804a103ad72c70245e33b2b52b972a84 to your computer and use it in GitHub Desktop.
Remove Apache2 in Ubuntu
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