慢慢赚钱博客

3月 15 2018

centos7下安装php的Imagick扩展

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

20180315190916_47001 centos7下安装php的Imagick扩展

Written by admin