Linux : How to enable php-imagick module support on CentOS/RHEL 6

By | September 28, 2014

PHP imagick module is not a part of the default installation yet. Here is some easy steps to enable php-imagick module on your system.

1. First install the required development and dependency packages :

yum install make gcc php-devel php-pear ImageMagick ImageMagick-devel

2. Compile php-imagick module :

pecl install imagick

3. Add the extension to php.d as followed :

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

4. Restart your Web server :

service apache restart

OR ;

service php-fpm restart
service nginx restart

5. Optionally, you may remove the compiler for security purpose :

yum remove make gcc