Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I uninstall an apache2 module?

It looks like I installed the wrong version of the module using apxs2.

Once it's disabled (a2dismod), how do I remove it so I can install the correct version?

Seems elementary, yet...somehow...I'm finding nothing on Google, IRC, etc.

like image 367
mlissner Avatar asked Feb 15 '12 06:02

mlissner


People also ask

Where are apache2 modules?

1 Answer. The module shared library files go in /usr/lib/apache2/modules , not that you should use your own when there's a packaged version available.


2 Answers

For some modules on Ubuntu you can use apt-get.

To find the installed module sudo dpkg -l | grep apache. To remove sudo apt-get purge {module_name}.

For example:

sudo apt-get purge libapache2-mod-php7.0  libapache2-mod-php5
like image 195
weivall Avatar answered Oct 07 '22 02:10

weivall


It's so simple nobody has written it down yet. You just remove the .so file from /usr/lib/apache2/modules/.

And if you want to be thorough, remove anything that might be in: /usr/share/doc/module-name

like image 37
mlissner Avatar answered Oct 07 '22 02:10

mlissner