Installing ImageMagick on a cPanel Server

Installing ImageMagick on a cPanel Server
4 (80%) 1 vote

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

Don't be selfish, share!Tweet about this on TwitterShare on RedditShare on TumblrBuffer this pageDigg thisShare on FacebookFlattr the authorEmail this to someoneShare on Google+Pin on PinterestPrint this pageShare on LinkedInShare on StumbleUpon

6 Comments

  1. Rob K Reply

    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

  2. Richard D Reply

    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.

Leave a Reply

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

Log in