Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I install ImageMagick library on Apache 2. I am using Php 5.2.6 and Fedora 8. My php_info has no mention of ImageMagick.

I have tried: yum install ImageMagick and restarted apache, which didn't work.

I also added extension=imagick.ext to my php.ini file and restarted apache, which didn't work.

share|improve this question

I had to configure this today and I found it difficult to find good instructions. Here is a solution I have tested on the Basic 32-bit Amazon Linux AMI 2010.11.1 Beta (AMI Id: ami-76f0061f)

yes | yum install kernel-devel gcc gcc-c++
yes | yum install php-devel
yum install php-pear # This line installs pecl as well as pear
yum install ImageMagick-devel
pecl install imagick
Add to /etc/php.ini
service httpd restart

You will see it listed now in phpinfo()

share|improve this answer

Read the comments on the installation guide:

ImageMagick is not itself a PHP library, it is a set of image manipulation programs, like a command line Photoshop. To learn how to install the PHP library, go to the PHP documentation.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.