First of all check whether there is a cPanel script for installing ImageMagick available in the server or not. If yes,
# /scripts/installimagemagick
-This will install ImageMagick automatically.
If not, follow the steps given below to install ImageMagick.
Install ImageMagick
1. # cd /usr/local/src/
2. # wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
3. # tar -xzvf ImageMagick.tar.gz
-To download the ImageMagick setup compressed file and extract it.
-To download the ImageMagick setup compressed file and extract it.
4. # cd ImageMagick-*
# ./configure
# make
-To configure and make ImageMagick from the source.
-To configure and make ImageMagick from the source.
5. # make install
-To install ImageMagick if the make process is successfully completed.
-To install ImageMagick if the make process is successfully completed.
6. # make check
-It will check the installation of ImageMagick. If the installation completed successfully check will give a positive result.
7. # php -m | grep imagick
-To check whether the imagick module is loaded or not.
Bind ImageMagick Into PHP
For your new ImageMagick installation to work with your web php scripts, you now need to bind it into PHP. To do this, just follow the steps below.
1. Login to WHM and navigate to the “Module Installers” option under “Software” in the left hand menu
2. On the following page, select the “Manage” link beside the PHP Pecl language option
3. Enter imagick into the “Install a PHP Pecl” field and then click the install button.
Note 1:- Put a php info page and verify whether ' imagick ' is loaded or not.
<?php phpinfo(); ?>
http://pecl.php.net/package-stats.php