How can I uninstall an apache2 module?

mlissner picture mlissner · Feb 15, 2012 · Viewed 13.4k times · Source

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.

Answer

mlissner picture mlissner · Feb 15, 2012

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