How to install imagemagick in a cpanel server – Command-line option

Yes, the imagemagik installation steps are simple for a cPanel server. Before installing you must have an idea about imagemagik. It’s simply an addon for your cPnel server that allows for image manipulation. ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

–> Installation via commandline
–> Installation via WHM
–> Installation on CloudLinux installed server

1, Installation via commandline

Step I : How to check whether the Imagemagick installed or not on the server?

You may first check if it is already installed on the server. You can use the following way to figure it out from the command line.

1, /scripts/checkimagemagick
2, /usr/bin/convert --version

Step II : Installation


This will take a couple of minute to complete. After installation you can check the version by executing the command, /usr/bin/convert –version
Sample output,

root@server [~]# /usr/bin/convert --version
Version: ImageMagick 6.5.4-7 2014-02-10 Q16 OpenMP
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

How to uninstall imagemagik from command line?

It’s simple, do execute the following command to remove imagemagik from your server.


2, Installation steps via WHM control panel

Step I : Login to WHM control panel.
Step II : Do follow these steps,

Go to WHM -> Software -> Module Installers -> PHP Pecl (manage). On the box below “Install a PHP Pecl” enter “imagick” and click “Install Now” button.

Step III : Restart apache.


Un-installation steps via WHM control panel:

Step I : Login to WHM control panel.
Step II : Do follow these steps,

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

Step III : Restart apache.

3, Installation on CloudLinux installed server

In a CloudLinux installed server there is an additional step to enable packages to users on that server. Installing packages on the server wont reflect in these cases. It won’t be available inside CageFS. You will want to install ImageMagick inside CageFS as follows to make those binaries available inside CageFS:

To see the list of RPMs currently installed under CageFS:

cagefsctl --list-rpm

To add a new RPM:

cagefsctl --addrpm ImageMagick

To pick up the changes:

cagefsctl --force-update

That’s it.

Also read:

>> CloudLinux installation
>> PHP selector installation

Post navigation

Arunlal Ashok

Cloud Infrastructure / DevOps Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team

3 thoughts on “How to install imagemagick in a cpanel server – Command-line option

  1. While installing Imagemagick on a cloudlinux server, do we have to do step 1 and 2 mentioned above or just the step 3 (cagefsctl –addrpm ImageMagick) ?


Leave a Reply

Your email address will not be published. Required fields are marked *