We will show you how to install and enable the ImageMagick PHP extensions for all versions of PHP installed on your server. This process can be done using the command line or through the WHM.
Log into the command line of your server as the user root and run the following commands.
yum -y install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl for php in $(whmapi1 php_get_installed_versions|grep -oE '\bea-php.*') ; do /opt/cpanel/$php/root/usr/bin/pecl install imagick; done
ImageMagick has now been installed for the PHP version you selected. Repeat these steps for each version of PHP you wish this module to be enabled on.