IIS7 configures PHP and Imagick. due to project requirements, php and imagick libraries must be installed on the server. I searched the internet and found many tutorials, which are similar. I won't talk about how to configure PHP in IIS7, now we have PHP Manager, which is easy to configure in fastcgi mode.
1, first install ImageMagick-6.8.7-7-Q16-x64-dll.exe.
: The http://www.imagemagick.org/script/binary-releases.php#windows can select a different 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 it based on 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 your 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
Run php-v in cmd to see if there is any error. If yes, check if the VC Library is missing. If yes, restart IIS and run phpinfo, normally, you can see that imagick is successfully loaded. if supported formats is no value, check whether the environment variable is added. This problem has been stuck 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.