Windows 8, IIS8 how to make PHP imagick work
Posted
by
Laci K
on Super User
See other posts from Super User
or by Laci K
Published on 2012-12-11T22:05:58Z
Indexed on
2012/12/11
23:06 UTC
Read the original article
Hit count: 400
I'm new to IIS server before IIS for 6 years I used Apache 2.X and with Apache imageMagick and its PHP module imagick worked just fine even with x64 version of PHP and Apache 2.4 and imageMagick.
I tried to make imagick to work with IIS8 but it wont work. I always get the typical PHP startup warning in my log PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\iis express\PHP\v5.4\ext\php_imagick.dll' - %1 is not a valid Win32 application. in Unknown on line 0
And the next thing why is IIS loading php from IIS express folder if I have php in the program files? But actually I dont care until it works :)
So what I did so far I unistalled imageMagick 6.7.X 64bit version and installed the latest x86 version, tested it in command line and it worked, than I looked up on net the latest imagick DLL which was I think the 3.1.0RC2 (founded here http://www.peewit.fr/imagick/)
than I copied the dll to PHP's ext folder than edited php.ini and added the imagick to the dynamic extensions after that I restarted IIS and than nothing :( I got the error which I wrote earlier.
Today I installed PEAR package Installer because I read somewhere that someone made it work with it but he also mentioned, that he needed to comply wincache too.
Isn't there any easier solutions to make it work? Could someone maybe write me a step by step guide how to make this work.
© Super User or respective owner