phpinfo() I found a lot of modules that I am not using and therefore they just waste memory. So I want to remove them, but the problem is that also there is huge amount of info about 'how to install module X in php' I can not find anything about 'how to uninstall module X in php'.
Even when I tried to find and disable them in
php.ini I got no luck. For example with bcmath module the only reference in php.ini is
[bcmath] ; Number of decimal digits for all bcmath functions. ; http://php.net/bcmath.scale bcmath.scale = 0
which is just to change some parameter, not to disable it. Some of the answers I found tells to add functions here:
which is doing completely another thing.
So how can I remove (or in the worst case disable) a lot of modules in php, running on apache. The list of modules is kind of big (bcmath, bz2, zip, dba, pdo, ftp, gettext, sopa, simpleXML and so on ...)