ImageMagick can be access in C, Perl, Ruby, PHP, etc. and support about 100 image formats and can perform impressive operations changing colors, stretching, rotating, overlaying images, overlaying text on image, draw text, lines, polygons. We have already discussed  about  configure Imagemagick with PHP on XAMPP .

Option 1 : Script

This post is describe to install imagemagick in your cPanel, WHM provided a script.

​# /scripts/installimagemagick
.....
Extension imagick enabled in php.ini
extension imagick.so installed in /usr/local/lib/php.ini
....


Once the installation has been done check your package version,
 
# /usr/bin/convert --version


Version: ImageMagick 6.5.4-7 2014-02-10 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC


Option 2 : WHM


Login into your WHM and search "Module Installer" on left side search box,

Software -> Module Installers -> PHP Pecl(Manage)

On the box below  “Install a PHP Pecl” type “imagick” and click on button. Package will be display then click on Install.