12

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.

atrljoe
  • 8,031
  • 11
  • 67
  • 110
mlissner
  • 17,359
  • 18
  • 106
  • 169

3 Answers3

16

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

mlissner
  • 17,359
  • 18
  • 106
  • 169
4

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
weivall
  • 917
  • 13
  • 16
0

The apache modules can be found in /usr/lib64/apache2 or /usr/lib64/httpd