Updated: 11 October 2026 · Applies to: cPanel & WHM 138 (EasyApache 4, AlmaLinux 9)

ImageMagick is a program for converting and editing images; imagick is the PHP extension that lets PHP use it (WordPress, for example, uses it for better image resizing). On cPanel & WHM 138 with AlmaLinux 9 you install both in two steps.

1. Install ImageMagick

dnf install epel-release
dnf install ImageMagick ImageMagick-devel
convert -version

2. Install the imagick PHP extension

cPanel & WHM server (root): PHP PECL

  1. In WHM, open Software › Module Installers and click Manage next to PHP PECL.
  2. Choose the PHP version (for example ea-php83).
  3. Enter imagick in Install a PHP PECL and click Install Now.
  4. Repeat for each PHP version your sites use.

From SSH the same is /opt/cpanel/ea-php83/root/usr/bin/pecl install imagick. PHP-FPM is restarted for you when you use WHM; after a command-line install, restart it with /scripts/restartsrv_apache_php_fpm.

3. Check

/opt/cpanel/ea-php83/root/usr/bin/php -m | grep imagick

In WordPress, Tools › Site Health › Info › Media Handling then shows ImageMagick as the image editor.

cPanel account (CloudLinux PHP Selector)

If your hosting shows Software › Select PHP Version in cPanel, open it, go to Extensions, and tick imagick. The change applies at once.

Note: On Ucartz shared and reseller hosting you cannot install server software yourself. If an extension is not available in Software › Select PHP Version or Software › MultiPHP INI Editor, open a ticket and our support team will check it for you.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket