The script to automatically install ImageMagick was removed as of version 58.0.25:
Fixed case CPANEL-8229: Remove scripts/installimagemagick for 11.58.
EA-PHP Extension via SSH or Terminal:
First, remove any old RPM installs:
rpm -qa | grep -i Magick
rpm -e "here enter anything that pops up"
Then Install the Required Packages
yum install ImageMagick ImageMagick-devel
Sometimes the command will generate an error, so another package must be installed as a prerequisite:
yum install pcre-devel
If a domain uses php 7.1 for example, run the following command:
/opt/cpanel/ea-php71/root/usr/bin/pecl install imagick
You can customize this command based on the required php version:
/opt/cpanel/ea-phpXX/root/usr/bin/pecl install imagick