How Do I Know What Php Modules Are Installed on Linux?
Contents

The general command is php -m , which will show you a list of all “compiled” PHP modules. You can search for a specific PHP module for instance php-ftp , using the grep command.

How do you check what PHP modules are enabled?

Modules can be enabled/disabled via the php5enmod tool ( phpenmod on later distros) which is part of the php-common package. To check if this extensions are enabled or not, you can create a php file i.e. info.

How do I know what PHP extensions are installed?

The general command we will be using is php -m. This command will give you the full list of installed PHP modules/extensions.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest