ImageMagick [Imagick] PHP Class Broken Or Fails To Install

Article By: peggy


img

Imagemagick Imagick PHP Class for BIPmedia.com VPS

Introduction to Imagick

Some versions of CentOS (including the most recent 5.5) have an issue with a buggy 6.4.8 RPM version of ImageMagick. This version prevents the Imagick PHP class from working properly and also prevents the extension from being installed via PECL.

If you are using this PHP class on your site, you will see an error something like:

Fatal error: Class 'Imagick' not found in /home/user/public_html/file.php on line 92

When trying to install via PECL, the error will be:

...
make: *** [imagick_helpers.lo] Error 1
ERROR: `make' failed


To work around this, we will install newer versions of ImageMagick. First, we'll grab the .rpm and the pre-requisites:

wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/misc/testing/i386/RPMS/ImageMagick-6.6.0.2-8.el5.kb.1.i386.rpm ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/jasper-devel-1.900.1-7.el5.kb.i386.rpm ftp://ftp.pbone.net/mirror/centos.karan.org/el5/misc/testing/i386/RPMS/ImageMagick-devel-6.6.0.2-8.el5.kb.1.i386.rpm ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/i386/RPMS/jasper-libs-1.900.1-7.el5.kb.i386.rpm


Next, we'll install them:

rpm -Uvh ImageMagick-devel-6.6.0.2-8.el5.kb.1.i386.rpm ImageMagick-6.6.0.2-8.el5.kb.1.i386.rpm jasper-libs-1.900.1-7.el5.kb.i386.rpm jasper-devel-1.900.1-7.el5.kb.i386.rpm


Finally, we re-install the PECL extension and restart the web server:

pecl install Imagick
/scripts/restartsrv_apache


If you are using a non-cPanel server, use whatever method you would normally use to restart your web server (e.g.
service httpd restart



Tags: , , , , , , , ,


Welcome to the healthcare-only HIPAA - GDPR compliant cloud. Exclusively hosted on a HPC environment!

Learn more or start today by choosing your secure HIPAA - GDPR compliant server's Operating System bellow and pick the package that's best for you.

BIPmd makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine, thousand or more.



Windows VPS options and add ons
Linux VPS options and add ons

>

Looking for a custom solution?

Our technicians can provide you with the best custom-made solutionss on the market, no matter whether you're a small business or large enterprise.

Get in touch

Leave a Reply



Feedbacks