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.
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.
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
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
The apache modules can be found in /usr/lib64/apache2 or /usr/lib64/httpd