Installing ImageMagick on a cPanel Server
- Written by Vanessa Vasile
- Published in Apps, Howto, Linux
- 6 Comments
- Permalink
This post is obsolete as of cPanel 11.36. To install ImageMagick:
yum -y install ImageMagick-devel ImageMagick-c++-devel
For PHP:
/usr/bin/pecl install imagick
For Perl:
yum -y install ImageMagick-perl
(You may need to temporarily remove “perl*” from /etc/yum.conf)
LEGACY VERSION INSTALLATION:
Some time in earlier 2009 cPanel added a new script to their repository to allow cPanel admins to easily install ImageMagick without the hassle of finding compatible RPMs for newer versions, or dealing with the the various issues surrounding Perl Magick on CentOS 5/RHEL 5 servers.
First, check to see if you have existing RPM versions installed on your system:
rpm -qa |grep -i magick
If any packages show up, remove them with rpm -e . Then to reinstall ImageMagick, run:
/scripts/installimagemagick
This may take a bit of time, but it will fully install a functional copy of ImageMagick as well as Perl Magick. When it’s done, you can run the following commands to test it:
convert -v
…will show you ImageMagick is installed, and to what version:
Version: ImageMagick 6.4.8 2010-02-11 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
To test Perl Magick (Image::Magick), run:
/scripts/checkimagemagick
6 Comments
Thanks but doesn’t work.
Script runs in a second and says ‘installed Ok’
Convert -v gives ‘command not found’
checkimagemagick says insatleld ok but my web apps say it isn’t installed
If you type in “which convert” do you get any output?
Hello,
The install script worked on Centos 5.6 and cPanel but not Centos 5.7 and Panel. The install script finishes with an error.
&image::Magick constant not defined. The required ImageMagick libraries are not installed or not installed properly.
This was a fresh Centos 5.7 install and cPanel.
Hi. Thanks for this. It is exactly what I was looking for. Do I use it in root, or in cPanel for each resold account?
You run this as root to install on the server itself.
/scripts/installimagemagick has been removed as of v11.36
Instead see http://docs.cpanel.net/twiki/bin/vief/AllDocumentation/1136ReleaseNotes#ImageMagickSupport