How to Compiling and Installing PHP Imagick extension on centos 7

yum install php-pear php-devel
yum install ImageMagick ImageMagick-devel
yum install pcre-devel
wget http://pecl.php.net/get/imagick-3.2.0RC1.tgz
tar -xvf imagick-3.2.0RC1.tgz
cd imagick-3.2.0RC1/
phpize
./configure
make
make test
make install
Remember to turn on the extension in the php configuration file.

vim /etc/php.ini
extension = imagick.so

imagick
imagick

Leave a Reply

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