Install ImageMagick On A cPanel Server



Install ImageMagick On a cPanel Server using YUM:


To install ImageMagick on a cPanel server using yum, just enter the following:

    yum install ImageMagick

NOTE: For ImageMagick to work with web applications, you also need to install imagick. See “Bind ImageMagick Into PHP using Imagick” below:

Manually Install ImageMagick On A cPanel Server:

Login to your server via SSH as root and download the latest version:

    wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

Untar the downloaded files:

    tar xfz ImageMagick.tar.gz

Configure and compile the installation files:

   cd ImageMagick-6.8.9-5
 ./configure
 make

Once ImageMagick compiled without any errors, install it onto your system:

   make install

For a quick check that ImageMagick is installed and running correctly, enter the following:

   /usr/local/bin/convert logo: logo.gif

For a more advanced check on your ImageMagick installation, run the command below which will perform a full test on the installation and should result in a “all tests passed”.

    make check

Bind ImageMagick Into PHP using Imagick:


For newly installed ImageMagick to work with web php scripts, we need to bind it into PHP. To do this using Imagick, just follow the bellow given steps:

   Login to WHM and navigate to the “Module Installers” option under “Software” in the left hand            menu

   On the following page, select the “Manage” link beside the PHP Pecl language option

   Enter "imagick" into the “Install a PHP Pecl” field and then click the install button.



--






No comments:

Post a Comment