ImageMagick – How to install ImageMagick on your cPanel Server / VPS
The following assumed you have root access to your cPanel Server.
ImageMagick is one of the most requested add-ons that allows for image manupulation.
Always try to use GD first, if it is available, as it can be compiled from easyapache instead directly.
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
INSTALLATION
Simply log into your server via SSH and install ImageMagick via command line
/scripts/installimagemagick
Installation will take a couple minutes as it will install other packages needed by ImageMagick.
After the installation, check that it is installed again and it should state the version.
/usr/bin/convert --version
It will give you something like:
Version: ImageMagick 6.5.4-7 2012-12-14 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Then, if you require PHP bindings with Apache, these bindings can be installed via the PECL utility:
/usr/local/bin/pecl install imagick or /usr/local/cpanel/3rdparty/bin/pecl install imagick
Or if your prefer, you can simply install via WHM interface as well, see below:
Go to WHM -> Software -> Module Installers -> PHP Pecl (manage).
On the box below “Install a PHP Pecl” enter “imagick” and click “Install Now” button.
Now simply restart Apache and all is done
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
CHECKING WHERE ImageMagick is located:
from ssh use the below to get the directory/location
whereis convert