Install ImageMagick and Imagick on Cpanel Server
May 12th, 2009 · 9 Comments
Here’s a quick how-to for installing ImageMagick and Imagick on Cpanel server. I will cover only the procedure using the Cpanel built-in scripts, although you can also install it the usual way (rpm or source install). ImageMagick is the application for working with images while the Imagick is a PHP extention to modify/create images using the ImageMagick API.
Installation:
ImageMagick
Check first if it’s installed:
/scripts/checkimagemagick
Proceed with Installation:
/scripts/installimagemagick
Installation will take a couple minutes as it will install other packages needed by ImageMagick. After the installation, you can check your ImageMagick version:
/usr/bin/convert --version
It will give you something like:
Version: ImageMagick 6.4.8 2009-05-11 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Imagick
Go to WHM -> Software -> Module Installers -> PHP Pecl (manage). On the box below “Install a PHP Pecl” enter “imagick” and click “Install Now” button – that’s all.
Restart Apache and check your phpinfo page to see the details of Imagick and ImageMagick as well. See linked images for reference: image1, image2.
Uninstall:
If you decide to uninstall it’s as easy as the installation process:
ImageMagick: /scripts/cleanimagemagick
Imagick: WHM -> Software -> Module Installers -> PHP Pecl (manage). Click on Uninstall button for Imagick.
Source installation steps
=========================
If you need the version ImageMagick-6.4.9-2 to be installed on your cPanel dedicated server, we have followed the below steps which worked perfectly.
First, download the tar using the below command:
root# wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
root# tar -zxvf ImageMagick.tar.gz
root# cd ImageMagick-6.4.9-2
root#./configure
root# make
root# make install
You can check the path for the installed ImageMagick by the command:
root# which convert
/usr/local/bin/convert
root# convert -v | head -n 1 | cut -c 22-26
6.4.9
OR
root# convert -v | grep Version:
Version: ImageMagick 6.4.9-2 2009-02-07 Q16 OpenMP http://www.imagemagick.org
That’s it!
==========================================================================================
Method 2
Installing ImageMagick 6.3.8 on a cPanel Server
Written by wiredgorilla
Wednesday, 23 January 2008
This tutorial will give you a little step by step manual of how to upgrade and properly install ImageMagick on you cPanel server without having to manually compile Apache
Firstly we need to talke notice that the new easyApache version 3 does not incude ImageMagick as an additional install option in PHP, so here are the steps we performed to get that magic wand happening again.
1/ downolad ImageMagic 6.3.8. onto your server by using
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.4.3-6.zip
unzip ImageMagick-6.4.3-6.zip
go into the directory
cd ImageMagick-6.4.3-6
the default should be fine , but you can always check other options here Install-unix.txt
anyways, default install is simple
./configure
make install
Both of the commands can take a little while , but either way this should have installed ImageMagick 6.3.8 now. And now to finish the process
cd PerlMagick/
perl Makefile.PL
make
make install
BUT HOLD ON, this is not it yet!
We need to get it locked into PHP !
The new WHM has a fantastic utility to complete the task.
Log into WHM >> Software >> Module Installers >> PHP Pecl and install imagick to get the whole thing binding into PHP and making your applications gell ! :)
Below you can find a pic in WHM
That should be it, if by any chance you hot a problem with a 64 bit OS and WHM can not find imagick then install it manually, by following the steps below
Firstly install ImageMagick-devel
yum -y install ImageMagick-devel
Assuming ImageMagick-devel is installed, you need to download the Imagick PHP extensions, located here: http://pecl.php.net/package/imagick
Latest version, as of this post, is imagick-2.2.0
wget http://pecl.php.net/get/imagick-2.2.0.tgz
Place this package in your home directory. Then, in a shell console, type
tar -zxvf imagick-2.2.0 .tgz
while in the home directory (don't type the quotes)
Then type the following commands:
cd imagick-2.2.0
phpize
./configure
make
make install
Now go back into WHM and try to activate imagick again
===========================================================================================
No comments:
Post a Comment