fbpx

How to install ImageMagick on cPanel running CloudLinux 8

This tutorial describes how to install the ImageMagick software suite on a cPanel server running CloudLinux 8. ImageMagick is a common software suite using by WordPress, other CMS applications, and forum software such as XenForo and vBulletin.

If not installed, the WordPress Site Health will show imagick (ImageMagick), is not installed, or has been disabled. If you are a server administrator, you can install imagick and php-imagick on servers with cPanel running CentOS 7 using the following instructions.

MANUAL INSTALLATION:

Step 1: Install the ImageMagick-devel package

dnf -y install ImageMagick-devel

Step 2: Install ImageMagick via the PHP Extension Community Library (PECL):

You must run the command below for every PHP installed you have on your server. If you want ImageMagick installed on PHP 7.4, change “ea-php80” to “ea-php74”

printf "\n" | /opt/cpanel/ea-php80/root/usr/bin/pecl install imagick

Step 3: Update CageFS:

cagefsctl --force-update

Step 4: Verify ImageMagick is installed

Note: This verification step only works if you installed ImageMagick on your system’s default PHP version.

php -i | grep -i 'ImageMagick version'

The result output should be similar to the following:

Imagick compiled with ImageMagick version => ImageMagick 6.9.10-86 Q16 x86_64 2020-01-13 https://imagemagick.org

Congratulations, you have successfully installed ImageMagick

Updated on July 30, 2021

Was this article helpful?

Related Articles

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.