1. Install imagemagic image Software
Imagemagic focuses on performance, reducing bugs, and providing stable APIs and ABI
Installation method:
Tar zxf ImageMagick.tar.gz
CD imagemagick-6.5.1-2/
./configure
Make
Make install
Note: If make is wrong, the workaround: Yum install-y perl-cpan or Perl-devel
The error should pay attention to see the prompt!
2. Install imageick PHP Extension Plugin
Installing the Imageick extension requires installing the imagemagic image installation first
Installation method:
Unpacking software, entering the directory
Executive/usr/local/php/bin/phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make
Make install
Adding modules to the php.ini configuration
Vim php.ini
Found in the configuration file
; extension_dir= "./"
Revision changed to
Extension_dir= "Add Module path"
Then add the following to the end of the configuration file
Extension = memcache.so
Extension = pdo_mysql.so
Extension = imagick.so
Save, exit
Restart to make it effective
This article is from the "topspeed_king" blog, make sure to keep this source http://mylinuxlife.blog.51cto.com/4706737/1682511
Imagemagic image processing software and extension module, how to add extended modules in PHP configuration