Wednesday, March 4, 2015

How to completely removed apache2 on Lubuntu


Alright guys, in this article i'm going to show you how to completely removed apache 2 web server from lubuntu operating system.

First of all, why you want to remove apache 2 in first place? because if you are going to use installer like XAMPP you need to get rid of your apache installation.

Apache web server already included in the XAMPP installation, so if you have another apache then you won't be able to use apache that comes with XAMPP.

The first command that you might want to try is apt-get remove, this command will uninstall the corresponding package.

sudo apt-get remove [name_of_the_package]
sudo apt-get remove apache2

If that doesn't work, next you might want to try apt-get purge, this command not only uninstall the package but also remove any config files

sudo apt-get purge [name_of_the_package]
sudo apt-get purge apache2 

Finally, if all of that doesn't work, you can try this command:

sudo apt-get remove apache2*

You can also search on the repo, all kind of package that related to apache by typing this command:

apt-cache search apache | grep apache

Good Luck :)

No comments:

Post a Comment