centos要安装imagick 首先安装ImageMagick

yum install -y ImageMagick ImageMagick-devel

然后安装imagick

wget http://pecl.php.net/get/imagick-3.4.3.tgz
tar zxvf imagick-3.4.3.tgz
cd imagick-3.4.3
/usr/local/php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config
make
make install

安装成功后写入php.ini并重启

/usr/local/php/etc/php.ini
extension=imagick.so

/etc/init.d/php-fpm reload

php-imagick的安装

Comments are closed.

Post Navigation