Installing ImageMagick on a cPanel Server

January 28, 2010 | In: Cpanel

Make sure that Imagemagick is not installed via Easyapache3. If you already have ImageMagick installed via rpm, you need to remove it. Find the rpms using the following command.

rpm -qa |grep -i imagemagick

Remove the rpms in the following order

rpm -e ImageMagick-c++-devel-6.2.8.0-4.el5_1.1
rpm -e ImageMagick-c++-6.2.8.0-4.el5_1.1
rpm -e ImageMagick-perl-6.2.8.0-4.el5_1.1
rpm -e ImageMagick-devel-6.2.8.0-4.el5_1.1
rpm -e ImageMagick-6.2.8.0-4.el5_1.1

Download the ImageMagick using the following

cd /usr/local/src
wget http://ftp.nluug.nl/ImageMagick/ImageMagick-6.4.3-6.zip
unzip ImageMagick-6.4.3-6.zip
cd ImageMagick-6.4.3

Installation

./configure
make install

This may take a while to complete. Finally,

cd PerlMagick/
perl Makefile.PL
make
make install

Add PHP Pecl extension to access ImageMagick via PHP

Login to WHM,

WHM > Software > Module Installers > PHP Pecl

install imagick

ImageMagick should be installed now.

If WHM can’t find the ImageMagic installation

Firstly install ImageMagick-devel

yum -y install ImageMagick-devel

Once that is done, you need to download the Imagick PHP extensions from:
http://pecl.php.net/package/imagick

cd /usr/local/src/
wget http://pecl.php.net/get/imagick-2.2.0.tgz
tar -zxvf imagick-2.2.0 .tgz
cd imagick-2.2.0
phpize
./configure

make
make install

find the php.ini using the command

php -i |grep php.ini

add the following line to php.ini

extension="imagick.so"

restart Apache and you are done.

mm
Hi All… I have been working the IT Industry since last ten years… Specialized in Linux, Cloud Infrastructure and Solution Design.
On the hobby friend, I do research on IOT, Micro-controllers, Electronics etc.
Music is my passion..Connect me on..

Comment Form

*

Authors

mm
Presoon John

Hi All... I have been working the IT Industry since last ten years... Specialized in Linux, Cloud Infrastructure and Solution Design.
On the hobby friend, I do research on IOT, Micro-controllers, Electronics etc.
Music is my passion..Connect me on..

Access this post via Mobile

Scan the QR Code
QR Code Generator

Categories