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.

Might want to add that you need to restart apache before checking phpinfo()
Thanks for the easiest install of imagemagick possible
@Sue – thanks for the note – I updated my post.
thanks a million!
the tip on using php pecl manager was the hit!
thanks!
Not in my WHM:
Go to WHM -> Software -> Module Installers -> PHP Pecl
What is your WHM access – is it root or other reseller account?
From WHM you can search for “Module Installers” or type the url directly, ex: https://ip_or_hostname:2087/scripts2/module_installers_chooser
i’m getting an error when installing pecl imagick
make: *** [imagick_helpers.lo] Error 1
ERROR: `make’ failed
The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20060613
Thanks, it works like it should now..
Any clue on why Imagemagick isn’t enabled by default?
Oh I get the error btux gets also.. Anyone got a solution?
DO NOT INSTALL Image Magick using /scripts/installimagemagick .. you won’t have an easy way to uninstalling it .. I just make this mistake
I think a better way to install it is using yum but didn’t tried it
Thanks for this. Much easier than what I was trying to do.
The latest version of Imagick is not compatible with Image Magick 6.4.8.
I had to install Imagick 2.2.2 with my SSH account and now is working fine!
Had to do the following; otherwise, Apache didn’t see imagick:
cp /usr/lib/php/extensions/no-debug-non-zts-20060613/imagick.so /usr/local/lib/php/extensions/no-debug-non-zts-20060613
Important Note:
/scripts/cleanimagemagick
Does not uninstall ImageMagick, it reinstalls it if there is an issue with the current installation. CPanel does not provide an automated uninstall script.
Install ImageMagick and Imagick on Cpanel Server » DeveloWare LLC // May 23, 2011 at 5:52 pm
[...] it! Credit goes to Linux Sysadmin Blog for a great article on [...]
WHM 11.28 bug in /scripts/checkimagemagick which fails the check.
vi /scripts/checkimagemagick
Change:
my $maxmem = ( 128 * ( 1024 * 1024 ) );
to:
my $maxmem = ( 512 * ( 1024 * 1024 ) );
Then it doesnt fail the check, not enough memory to check.
Then I had to use mangoo’s cp command and everything was good in the world. Many thanks (I added this to a useful older thread for reference)
cool mangoo, cp worked fine.
Cheers…