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
This is an older question, but I've ran into similar issues with PHP/IIS before. A couple things I could suggest to double check:
You do not need to restart windows. You need to restart the application pools running the PHP exe. This can be done by either resetting IIS (This is the best option to get all the application pools to reset). Or recycle the application pools that are running PHP.
nothing worked until I set the permissions on the imagick folder and c:\windows\temp (IUSR read/execute for imagick, read/write/execute for windows\temp).
* I'm not 100% sure read/write/execute was necessary for windows\temp but it was listed on a site somewhere during my google surfing *
Pretty sure the rebooting part is just to make sure the imagick folder is in your system path directory and showing up in phpinfo(), it was already in my path so I didn't have to reboot after setting the permissions.
In windows you should check 3 parameters when you want to add an extension to php server:
The compiler version which your php server compiled with (VC9 or VC10) which is indicated in phpinfo()
.
The PHP extension API number which is indicated in phpinfo()
.
The most important parameter is whether your web server is ts (thread safe) or nts (non thread safe) which is indicated in phpinfo()
.
I found to my experience that IIS is nts by default and the php extension should be compiled with nts php library in order to work properly in your web server. However, your extension and your php web server should be the same exactly in these three parameters if you want to load your extension properly.