在哪里可以找到适用于 Windows wampserver 2.5 的 php 5.5.12 的 php_imagick.dll? [英] Where to find php_imagick.dll for php 5.5.12 for Windows wampserver 2.5?

查看:25
本文介绍了在哪里可以找到适用于 Windows wampserver 2.5 的 php 5.5.12 的 php_imagick.dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7(32 位)上使用 Wampserver 2.5,我的 PHP 版本是 5.5.12.我无法使用 IMAGICK.

I am using Wampserver 2.5 on my Windows 7 (32 bit) and my PHP version is 5.5.12. I am unable to use IMAGICK.

我已经在我的系统上安装了 IMAGICK 6.8.9 版,它在命令行上运行起来就像魅力一样.

I have installed IMAGICK version 6.8.9 on my system and it works like charm on the command line.

此外,我已按照说明在我的 wampserver 上启用它.

Further, I have followed instructions to enable it on my wampserver.

  1. 在 Appache 的 httpd.conf 中插入了SetEnv MAGICK_HOME C:/imagemagick".
  2. 已下载php_imagick-3.1.2-5.5-ts-vc11-x86.zip
  3. php_imagick.dll 从 zip 复制并粘贴到 Appache 中的 php.ini.
  1. Inserted "SetEnv MAGICK_HOME C:/imagemagick" in httpd.conf at Appache.
  2. Downloaded php_imagick-3.1.2-5.5-ts-vc11-x86.zip
  3. Copied and pasted the php_imagick.dll from zip to php.ini at Appache.

在 php 上运行一个简单的脚本时 [$a = new Imagick()] 我收到错误 [Class 'Imagick' not found].

While running a simple script on php [$a = new Imagick()] I get the error [Class 'Imagick' not found].

请指导我正确的安装方式和正确的下载,以便在 Wampserver 2.5/Windows 7/32 位/PHP 5.5.12 上安装 IMAGICK.

Kindly direct me to the right way of installation and the right downloads to install IMAGICK on Wampserver 2.5 / Windows 7 / 32bit / PHP 5.5.12.

推荐答案

在Wamp、Xampp和IIS上手动安装imagick

  1. 在 php/ext 文件夹中创建一个文件夹 imagick.
  2. 现在将这个新创建的 php/ext/imagick 文件夹添加到 windows 路径中.
  3. 从此链接下载适用于 Windows 的最新版本的 imagick.http://windows.php.net/downloads/pecl/releases/imagick/
  4. 从此链接下载 imagick 的 php 扩展.http://windows.php.net/downloads/pecl/deps/
  5. 在下载这 2 个 zip 文件之前,请将您的安装文件名与您的 php.ini 文件名匹配.例如.php_imagick-3.2.0b2-5.5-nts-vc11-x86.zip
    -这里5.5是php的版本
    -nts 适用于 IIS 和 windows (wamp),ts 适用于 Apache 和 Linux (xampp)
    -VC11 和 VC9 是编译版本,运行 phpinfo 并检查它是否与您的 php 版本匹配.
    -x86 适用于 32 位 x64 适用于 64 位机器,我建议仅使用 x86
  6. 一旦你为你的 php 下载了正确的版本,将下载的文件解压到你添加到路径的 imagick 文件夹中,将所有文件从 bin 文件夹带到 imagick 的根目录并全部替换
  7. 在 php.ini 中添加 php_imagick.dll 的完整路径,如 extension=C:wampphpextimagickphp_imagick.dll
  8. 重新启动计算机以使路径生效.然后打开命令并输入 dcraw 并按回车键.如果您正确添加了路径,则会显示参数列表,您的 Imagick 已成功安装.
  9. 再次运行 phpinfo,您将看到 Imagick 列为扩展名.

这篇关于在哪里可以找到适用于 Windows wampserver 2.5 的 php 5.5.12 的 php_imagick.dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆