Linux Sysadmin Blog

Install ImageMagick and Imagick on Cpanel Server

- | 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:

1
/scripts/checkimagemagick

Proceed with Installation:

1
/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:

1
/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:

1
/scripts/cleanimagemagick

Imagick: WHM -> Software -> Module Installers -> PHP Pecl (manage). Click on Uninstall button for Imagick.

Comments