First of all, ImageMagick is a third-party software that requires the installation of this software. : Official Address
Imagick is an extension of all the APIs that ImageMagick has left for PHP: official address
First we use wget download ImageMagick
wget ftp://mirror.aarnet.edu.au/pub/imagemagick/ImageMagick-6.6.7-8.tar.gz
After the download is complete
tar zxvf ImageMagick-6.6.7-8.tar.gz
cd ImageMagick-6.6.7-8
./configure --prefix=/usr/local/ImageMagick
make
make install
Of course ImageMagick can also be installed with Yum
Yum Install ImageMagick
So it's installed. ImageMagick
Install the PHP extension below
wget http://pecl.php.net/get/imagick-3.0.1.tgz
tar zxvf imagick-3.0.1.tgz
cd imagick-3.0.1
/usr/local/php/bin/phpize #根据自己的情况找到这个文件运行 find / -name phpize
./confgure --with-imagick=/usr/local/ImageMagick
make
make install
Then modify the php.ini file to load the imagick.so ...
I installed more smoothly, Bun said there was an error in the middle, if you have problems can be raised, I see can help you solve.
In addition 3.1.0 Beta version of Imagick can support a higher version of the ImageMagick we use the actual is 3.1.0 but I recommend you use stable version.
If you encounter make: [Imagick_class.lo] Error 1 during installation, you can download the latest version of the ImageMagick installation
Related commands for Linux commands:
find / -name phpize
PS Aux|grep php
Resources:
http://php.net/manual/zh/install.pecl.phpize.php
Http://www.ansen.org/add-extension-library-for-php.html
Http://www.jszuofang.com/under-linux-php-dynamically-add-extensions-with-phpize.html
Http://www.jb51.net/os/RedHat/10332.html
ImageMagick, Imagick integrated PHP installation under Linux