Plesk

Install and enable PHP extensions in Plesk (admin)

Enable bundled PHP extensions per PHP version in Plesk, install extra ones such as Redis, Imagick or ionCube with PECL or packages, and verify they load.

AdvancedPlesk2 min read

Applications often require PHP extensions – intl for translations, imagick for image processing, redis for caching, ionCube for encoded software like WHMCS. Plesk ships several PHP versions, each with its own set of extensions that administrators can enable or extend.

Before you start

Enable bundled extensions

  1. Go to Tools & Settings → PHP Settings.
  2. Click the PHP version, for example 8.3.x FPM application.
  3. Open the PHP extensions tab.
  4. Tick extensions to enable – for example intl, soap, bcmath, gmp – and untick unused ones.
  5. Click OK. Plesk reloads PHP-FPM for that version.

ionCube Loader is usually available here as a checkbox too, which is the simplest way to enable it.

Install extra extensions with PECL

For extensions not bundled with Plesk PHP, use the PECL tool belonging to that version. Install build dependencies first (on AlmaLinux: dnf install gcc make autoconf plesk-php83-devel; package names follow the version), then:

/opt/plesk/php/8.3/bin/pecl install redis

Enable it by creating /opt/plesk/php/8.3/etc/php.d/redis.ini containing extension=redis.so, then register it with Plesk and reload:

plesk bin php_handler --reread && service plesk-php83-fpm restart

Repeat for each PHP version that needs the extension. On Debian/Ubuntu, the devel package is named like plesk-php83-dev.

Imagick

Install ImageMagick development libraries (ImageMagick-devel or libmagickwand-dev), then pecl install imagick for the PHP version and enable it as above. Check the WordPress Site Health screen afterwards, which reports missing image modules.

Verify

  • Command line: /opt/plesk/php/8.3/bin/php -m | grep -i redis.
  • Web: a temporary phpinfo() page in the site, deleted afterwards.
  • Plesk: the extension appears ticked in PHP Settings → extensions.

Keep extensions working after updates

PHP minor updates from Plesk keep PECL extensions working in most cases, but major PHP versions need the extension rebuilt for that version. Keep a short list of custom extensions per server so you can repeat installs when adding a new PHP version.

Troubleshooting

  • phpize not found: the PHP devel package for that version is missing.
  • Extension installed but not loaded: the .ini file is in the wrong php.d folder or the FPM service was not restarted.
  • Site still reports missing extension: the site uses a different PHP version or handler.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.