Unable to install ImageMagick / imagick in WHM/Cpanel CentOS 7 (Solved)

ImageMacick

First run following commands

1. "WHM Home » Software » Rebuild RPM Database"
2. yum install ImageMagick ImageMagick-devel
3. yum install pcre-devel

Then go to

Go to
WHM -> Software -> Module Installers -> PHP Pecl (manage).

On the box below “Install a PHP Pecl” enter “imagick” and click “Install Now” button – that’s all. Restart Apache.