This tutorial describes how to install the ImageMagick software suite on a cPanel server running CentOS 7. 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
yum -y install ImageMagick ImageMagick-devel
Step 2: Install ImageMagick via the PHP Extension Community Library (PECL):
printf "\n" | /opt/cpanel/ea-php80/root/usr/bin/pecl install imagick
Step 3: Verify ImageMagick is installed
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