php 5.2.x + imageick on windows 2008 not work?

php 5.2.x + imageick on windows 2008 not work?

前两天有朋友在网站上提出Fastcgi模式下无法安装 imagick,我还以为是版本不对或者是其他什么原因。在这位朋友发邮件给我后,我才知道,原来问题如下:

我的平台是:windows 2008 (32bit)iis7 + php 5.2.12(FastCGI 模式) 想让php支持功能强大的 imageick
可是很抱歉,GOOGLE查询,翻阅了大量资料一直都搞不定。在一次命令模式下输入 php 提示找不到 php5ts.dll。
这下我算有思路了,FastCGI模式调用的是php5.dll,而ISAPI模式加载PHP php5ts.dll,为了验证我的怀疑,我卸载了我的PHP FastCGI,重新用ISAPI模式加载PHP,再按照网上的方法来做一次,重启IIS后,结果出来了!

这个结果让我十分困惑,难道FastCGI模式加载PHP,不能让imageick工作吗??
也许这个就是nts(非安全线程)跟ts(安全线程)区别吧(区别可以看这里 http://www.juyo.org/juyo/original/php-Thread-Safe/ 或者自己GOOGLE一下)。
知道的朋友欢迎跟我讨论:taihom(at)163.com

fb91e9a23a25c6073d1c7cbe9d6b5ba2
另外我在这个网站找到了解决方案:http://valokuva.org/?page_id=50
这个博客的Mikko,提供了在FastCGI 的 PHP 5.3.x,可以跑成功。

----以上文章来自http://zone.molihua.net/space.php?uid=99&do=blog&id=4473

而他提到的解决方案的内容页为:

Imagick Windows Builds

Hello,

The new build page http://valokuva.org/magick

The installation steps should be somewhat like the following:

1. Install ImageMagick from http://imagemagick.org/script/binary-releases.php#windows. Choose Win32 dynamic at 16 bits-per-pixel. During the installation choose “Add to system path” or add the dir manually to your PATH.

2. Download php_imagick.dll from PHP 5.3 Windows builds and put it into your extension_dir. ts means thread-safe and nts is non-thread-safe. The latter is usually used with FastCGI.

3. Voila! You should now see imagick in phpinfo. If not, let me know.

--EOF-

可以从:http://valokuva.org/magick/ 直接进行下载。。

感觉他提供的并非独立版本。。。

评论 (0)

暂无评论