↑ ↓ select, Enter open, Esc close

Check whether a PHP extension is loaded

Adjust the values, the command updates live
user@server
php -m | grep -i imagick

Lists all loaded PHP and Zend modules and filters for the given name. If there is no output, the extension is not active for this PHP binary. Useful when an application or WordPress Site Health reports a missing extension.

Note: For a Plesk PHP version, use the full path, for example /opt/plesk/php/8.3/bin/php -m. CLI and FPM sometimes load different ini files.

Also searched as

  • check if php module is installed
  • missing php extension
  • is imagick enabled

Related one-liners

All in PHP

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.