- These instructions are intended specifically for listing the existing compiled PHP modules from the command line.
- Your server environment may be different, but we will go over several options that you might run into. We'll be using an Ubuntu Server with only a single PHP version on it, and two CentOS 7 servers, one with cPanel and one with InterWorx.
Single PHP Version
If your server only has a single PHP version installed, you can run this PHP command anywhere, and it will give you the same list of modules. The general command we will be using is php -m. This command will give you the full list of installed PHP modules/extensions.