IIS7 Configuring PHP and Imagick

Source: Internet
Author: User
Tags configuration php imagemagick phpinfo

Because of the project needs, the server to install PHP and Imagick Library support, online search, a lot of tutorials, basically similar, IIS7 configuration PHP will not say, now have PHP Manager, with fastcgi mode configuration is very convenient
1, first install Imagemagick-6.8.7-7-q16-x64-dll.exe. : Http://www.imagemagick.org/script/binary-releases.php#windowsYou can select a different version.
2, decompression Php_imagick-3.1.2-5.5-ts-vc11-x64.zip, the Php_imagick.dll into the PHP ext directory. Can be downloaded according to Imagick version: Http://pecl.php.net/package/imagick Click the DLL, you can go to select the appropriate PHP version. When downloading, be aware of Non-thread-safe and Thread-safe, which apply to IIS and the latter for Apache. 3. Open php.ini, add Extension=php_imagick.dll, restart IIS
then use Phpinfo () to see, live out not to Imagick expansion support, their own groping long time, looked up a lot of information, found that light according to most of the online method,hundred percent success can not! because there are a few points that are not clear!
The first is to install the ImageMagick, be sure to configure the environment variables, path in the installation can be checked on the optional, but also to add a Magick_home=c:\imagemagick\modules\coders, this can be adjusted according to your own installation directory.

then is the decompression Imagick expansion package, there is a bunch of the rest of the DLL files, to be copied into the C:\Windows\System32, if it is 64-bit copy to C:\Windows\SysWOW64then cmd run under Php-v, see if there is an error, if there is an error, see if there is a VC library, success, restart under IIS, and then run Phpinfo () See, normal words, you can see Imagick loaded successfully, if you see supported Formats is no value, see if the environment variable is added, before this problem stuck me for a long time

In addition encountered a problem, I always did not solve, I use the php5.6 version, read the PNG file will be error, but the extension is supported PNG, replaced by php5.3 and corresponding Php_imagick version, there is no problem, do not know if other people have encountered, If you encounter also please leave a message is how to solve.

IIS7 Configuring PHP and Imagick

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.