How can I figure out which PHP extensions aren't being used?

Posted by Tom Marthenal on Server Fault See other posts from Server Fault or by Tom Marthenal
Published on 2012-06-19T14:44:10Z Indexed on 2012/06/19 15:18 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

I manage a server (running Ubuntu) which hosts our client's sites with a few dozen different PHP-based websites, mostly small sites but also some installations of CMSes and forums.

I used the get_loaded_extensions() method to see what extensions I have loaded. To help streamline the server (remove unnecessary extensions to make upgrading easier and marginally improve speed), I'd like to remove extensions that aren't being used by any of the sites.

I currently have 54 different extensions loaded.

I can easily eliminate some of these from the list which I know are used, but others I am less sure about. Is there some way that I can see extensions which have not been used recently?

© Server Fault or respective owner

Related posts about linux

Related posts about php