【问题标题】:Issue Running Imagick module (PHP 5.3.5, WAMP server 2.1e)运行 Imagick 模块的问题(PHP 5.3.5,WAMP 服务器 2.1e)
【发布时间】:2014-09-12 06:51:45
【问题描述】:

我在 Windows Server 2008 R2-x64 中安装了 Wamp server 2.1e-32bit 和 ImageMagick-6.8.9-7-Q16-x86-dll。完成安装过程并运行 wamp 服务器后,我收到一条错误消息并且 Imagick 无法正常工作

错误信息是:

"PHP Warning:  PHP Startup: imagick: Unable to initialize module
 Module compiled with build ID=API20090626,TS,VC9
 PHP compiled with build ID=API20090626,TS,VC6
 These options need to match in Unknown on line 0"

如何解决问题?

【问题讨论】:

    标签: php imagemagick wamp


    【解决方案1】:

    尝试64-bit DLL,因为您在doc 推荐的Windows Server 2008 R2-x64 上运行。

    更新:

    如果您还没有php_imagick.dll 扩展,您可以从here 下载它。在您的情况下,您将选择 php 5.3 Thread Safe (TS) x86 版本。这里需要注意的是,我不确定这是否适用于最新的 imagemagick Q16 DLL。

    php_imagick.dll 文件复制到您的PHP ext 文件夹,并更新您的php.ini 以包含extension=php_imagick.dll。然后重启你的 WAMP 服务器。

    运行 phpinfo() 以确保 imagick 库正确加载。

    【讨论】:

    • 嗨,我试了一下,但我得到一个新错误 - “PHP 启动:imagick:无法初始化模块模块符合模块 API=20121212 PHP 编译模块 API=20100525 这些选项需要匹配”
    • @AnburajA 显然,有很多相互冲突的版本。您是否已经在您的php 中添加了php_imagick.dll 扩展?
    • 感谢您的来信。 Imagick 工作正常,但现在我面临一个新问题。问题是:“ImageMagick 支持的格式数量:0”和“ImageMagick 支持的格式:无值”。我在我们的 Godaddy 服务器上检查它有 198 个文件支持的格式。现在我该如何解决这些问题...
    • @AnburajA 如果您发现此答案有帮助,请将其标记为已接受。谢谢。同时,请针对新问题发起新问题,以获得社区其他人的更多帮助。
    猜你喜欢
    • 2014-06-10
    • 2017-03-14
    • 1970-01-01
    • 1970-01-01
    • 2014-10-30
    • 2022-01-02
    • 1970-01-01
    • 1970-01-01
    • 2014-11-30
    相关资源
    最近更新 更多