Uninstall Apache2 on Ubuntu

Friday, October 25, 2013

Need to remove Apache2, as well as other dependent packages and its associated configurations.

Step 1:
Stop apache serveice if already exists.

$ sudo service apache2 stop

Step 2:
Remove apache2 and associated packages

$ sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
$ sudo apt-get autoremove

Step 3:
Check apache2 installation folders

$ whereis apache2

-> apache2: /etc/apache2

Step 4:
Remove apache2 folder from /etc

$ sudo rm -rf /etc/apache2

No comments:

Post a Comment