Installing imagemagick on a cPanel server:


Install process:

Firstly, check to see if imagemagick is not already installed:

/scripts/checkimagemagick missing

If the command’s output is: “missing” then you don’t have imagemagick installed and the following steps can be followed in order to properly install it on your brave cPanel server:


This command will take care of 95% of the installation process 🙂 . After it finishes executing, check again for imagemagick:


And the expected result is:


You can also run the following commands to convince yourself that imagemagick is indeed installed:

convert -version
which convert

Now, for testing imagemagick’s functionality, run the following:

cd /usr/local/apache/htdocs/ /usr/bin/convert logo: logo.gif

Access your server’s link like this:


And you should see the happy imagemagick wizard.

To make imagemagick appealable through PHP, follow these steps:

Install php module:

pecl install imagick

In the promp :

Please provide the prefix of Imagemagick installation [autodetect] :

Just hit Enter.

Check the php module:

php -m |grep -i imagick

If the output for the upper command is:


Then imagemagik is successfully installed.

It’s also possible that you encounter an error referring to the extension not found in a path like /usr/lib/php/extensions/no-debug-non-zts-20060613/  then:

cd /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

ln -s /usr/lib/php/extensions/no-debug-non-zts-20060613/


Restart your web server:

service httpd restart

Check php module:

php -m |grep -i imagick imagick

And you’re all done 😉


Leave a Reply