Running PHP Version 5.2.5 on Windows Server 2003 with IIS.
Have virtually an identical server where we were able to install ImageMagick with no issues. It\'s running
I know that it is old question but I got here by google so probably other will too. For them here is a quickest and easiest solution: https://mlocati.github.io/articles/php-windows-imagick.html
It worked for me and it is much easier then most voted answers here (and which seemed too complicated for me, like installing imagick as cmd.com command - what for?)
I found an alternate source. PECL direct downloading.
Install Steps taken
ImageMagick installation
Where to download latest ImageMagic compatible with IIS 8.1 / Windows 2012r2 php x64:
http://windows.php.net/downloads/pecl/deps/
navigate and download: ImageMagick-6.8.8-vc9-x86.zip for PHP 32-bit, 5.4.xx
ImageMagick-6.8.8-vc11-x86.zip for PHP 32-bit, 5.5.xx
ImageMagick-6.8.8-vc11-x64.zip for PHP 64-bit, 5.5.xx
Tips:
Overwrite the DLLs found from ImageMagick 6.8.8 Windows version with the PHP version.
You need to reboot if files are locked in memory.
php_imageMagick.dll location
http://windows.php.net/downloads/pecl/releases/imagick/
download the appropriate DLLs.
You get latest version of ImageMagick DLLs, php_imagemagick.dll (both non-thread-safe and thread-safe versions).
Tip:
If you get php5ts.dll missing, you downloaded the wrong version of php_imagemagic.dll and download other version.
if you are using IIS - use 'NTS' version - php_imagemagick_nts.dll
if you are using Apache - use 'TS' version - php_imagemagick_ts.dll
In my case Windows restart (mentioned in step 4) did the trick.
It's quite complicated to match the imagick extensions to their base and to the PHP version. So, in order to take out the hassles of the installation, i would suggest to use a server stack which ships Imagick and it's extension, like WPN-XM.
On both http://www.imagemagick.org/download/binaries/ and http://valokuva.org/outside-blog-content/, there are multiple DLLs files: one for x64 and another for x86. If your Windows XP is 32-bit, you need to try x86 DLL.
Found very useful tha answer given by user Buttercup, also if he could be more clear.
My scenario was a Windows 2012 R2 x64, PHP 5.5.19 x64 and need to install ImageImagick with PHP support. Following points here below I was able to install ImageImagick 6.9.0 x64 and PHP_Imagick.dll 3.1.2 (both are currently the latest stable versions).
Please note I downloaded all components (PHP, ImageImagick and PHP_Imagick) in NTS and x64 modes: not in TS and/or x86 modes. I don't know if this apply in your own case.
The point it wasn't clear for me reading the Buttercup (as for user RhoVisions) was his comment: "Overwrite the DLLs found from ImageMagick 6.8.8 Windows version with the PHP version".
So, this is what I've done (based on Buttercup solution, who I have to say again and again thank you very much!): 1) download latest ImageMagick EXE installer from http://www.imagemagick.org/script/binary-releases.php#windows In my case I downloaded the first file available as HTTP download labeled "Win64 dynamic at 16 bits-per-pixel" (filename: ImageMagick-6.9.0-0-Q16-x64-dll.exe)
2) Run the installer just downloaded. I installed it in a simple path like C:\ImageMagick6.9.0 (but I don't think it is so important to move it away from Program Files). Also, I didn't change any other parameter from their defaults during installing.
3) download latest PHP_Imagick DLL file from PECL website at: http://pecl.php.net/package/imagick I choosed a stable (not Beta or RC) version, in my case 3.1.2, clicking on the "Windows logo"+"DLL" label. In my case it was linked to ht tp://pecl.php.net/package/imagick/3.1.2/windows . On the page it will open you'll find a table: you have to choose your file depending on: a) number of version of PHP you have (in my case there were available DLLs for PHP 5.3, 5.4, 5.5, 5.6) b) x64 or x86 version of PHP you have c) NTS or TS version of PHP you have My case is was PHP 5.5.x, x64, NTS: so I downloaded the one labeled "5.5 Non Thread Safe (NTS) x64" (file name: php_imagick-3.1.2-5.5-nts-vc11-x64.zip)
4) Unzip the php_imagick ZIP and: a) copy php_imagick.dll file into the EXT folder of your PHP installation b) copy and replace ALL the CORE_RL_.dll from the folder you just unzipped into the folder you choosed at point #2. Obviously, please backup replaced files. In my case I copied 8 CORE_RL_.dll files from unzipped folder to C:\ImageMagick6.9.0. I leaved into C:\ImageMagick6.9.0 the others CORE_RL_*.dll not overwritten.
5) Edit and save your PHP.ini file in order to add this simple row: extension=php_imagick.dll
6) Reboot your server (unfortunally I didn't find any good alternative of a reboot: also a IISRESET from admin command-prompt didn't work).
7) When reboot finished, visit remotely by browser your phpinfo.php file in order to verify that Imagick module was ok. In my case it was.
Hope this could help, out there!