Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Install Imagemagick – CentOS 6.5

This is how I installed Imagemagick on a vanilla CentOS server

Start off by installing the prerequisites

yum install php-pear gcc php-devel php-pear

Issue the following to verify whether you have Imagemagick available via the current repositories

yum list ImageMagick*

You should see something similar to the result below:

imagemagick list available install

Issue the following to install ImageMagick

yum install ImageMagick ImageMagick-devel

Now install the imagick library for PHP

pecl install imagick

Load the imagick extension into PHP

echo extension=imagick.so > /etc/php.d/imagick.ini

Restart Apache

service httpd restart

To verify that imagick has been successfully installed, do any of the following

php -m | grep imagick

Or check your PHPINFO

phpinfo imagick