IIS7: Configure PHP, Imagick, and iis7phpimagick
As required by the project, php and imagick libraries must be installed on the server. I searched the internet for a lot of tutorials, which are basically similar. I won't talk about configuring PHP In IIS7. Now I have PHP Manager, easy to configure in fastcgi Mode
1, first install ImageMagick-6.8.7-7-Q16-x64-dll.exe. : Http://www.imagemagick.org/script/binary-releases.php#windowsYou can select another version.
2. Unzip the php_imagick-3.1.2-5.5-ts-vc11-x64.zip and put php_imagick.dll into the ext directory of php. You can download according to the Imagick version: http://pecl.php.net/package/imagick click DLL, you can enter the corresponding php version. When downloading, pay attention to non-thread-safe and thread-safe. The former applies to IIS and the latter applies to Apache. 3. Open php. ini, add extension = php_imagick.dll, and restart IIS.
Then I used phpinfo () to view the extended support of imagick. I searched for a lot of information and found that most of the methods on the Internet were completely unsuccessful! A few points are not clear!
The first step is to install ImageMagick. Make sure to configure the environment variables. You can check and install the ImageMagick during installation in PATH, and add MAGICK_HOME = C: \ ImageMagick \ modules \ coders, you can adjust it according to the installation directory.
When decompressing the imagick extension package, there are a bunch of other dll files to be copied to C: \ Windows \ System32. If it is a 64-bit copy to C: \ Windows \ SysWOW64 and run php-v in cmd to check whether there is any error. If yes, check if the VC library is missing. If yes, restart IIS, run phpinfo () to check whether the imagick is successfully loaded. If supported formats is no value, check whether the environment variable is added, I have been stuck with this problem for a long time.
I have encountered another problem. When I use php5.6, an error will be reported when I read the png file. However, the extension supports png, Which is changed to php5.3 and the corresponding php_imagick version, there is no problem. I don't know if anyone else has encountered it. If so, please leave a message about how to solve it.