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:
/scripts/installimagemagick
This command will take care of 95% of the installation process 🙂 . After it finishes executing, check again for imagemagick:
/scripts/checkimagemagick
And the expected result is:
ok
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:
server_IP/logo.gif
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:
imagick
Then imagemagik is successfully installed.
It’s also possible that you encounter an error referring to the imagick.so extension not found in a path like /usr/lib/php/extensions/no-debug-non-zts-20060613/imagick.so then:
cd /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
ln -s /usr/lib/php/extensions/no-debug-non-zts-20060613/imagick.so
Restart your web server:
service httpd restart
Check php module:
php -m |grep -i imagick imagick
And you’re all done 😉


LEGEND!