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.
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.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With