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

问题描述

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



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



此外,我已经按照说明在我的wampserver上启用了。


  1. 插入 SetEnv MAGICK_HOME C:/ imagemagick 在httpd.conf中的Appache。

  2. 已下载 php_imagick-3.1.2-5.5-ts-vc11-x86.zip

  3. 复制并粘贴 php_imagick.dll 从zip到php.ini在Appache。

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



请指导我正确的安装方式,并正确下载在Wampserver 2.5 / Windows 7 / 32bit / PHP 5.5.12上安装IMAGICK

解决方案

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




  • 现在,将新创建的php / ext / imagick文件夹添加到Windows路径。

  • 从此链接下载最新版的imagick for Windows。

  • 从此链接下载想象中的php扩展名。

  • 在下载这两个zip文件之前,请将您的安装文件名与您的php相匹配。
    例如。 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

  • 一旦下载了正确的php版本,将下载的文件解压缩到已添加到路径的imagick文件夹所有文件从bin文件夹到想象的根,并替换所有

  • 在php.ini中添加php_imagick.dll的完整路径,如extension = C:\wamp\php\ext\\ \\ imagick\php_imagick.dll

  • 重新启动计算机以使路径生效。然后打开命令并键入dcraw并按enter键。如果您正确添加了路径,则会显示参数列表,您的Imagick将成功安装。

  • 再次运行phpinfo,您将看到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.

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

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

    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.

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

    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.

    解决方案

    Manual installation of imagick on Wamp, Xampp, and IIS

    1. Create a folder imagick in php/ext folder.
    2. Now add this newly created php/ext/imagick folder to windows path.
    3. Download the latest version of imagick for windows from this link. http://windows.php.net/downloads/pecl/releases/imagick/
    4. Download php extension of imagick from this link.http://windows.php.net/downloads/pecl/deps/
    5. Before downloading these 2 zip files, match the file name of your installation with your php.for eg. php_imagick-3.2.0b2-5.5-nts-vc11-x86.zip
      -Here 5.5 is the version of php
      -nts is for IIS and windows (wamp) and ts is for Apache and Linux (xampp)
      -VC11 and VC9 are the version of compilation, run phpinfo and check that it match with your php version.
      -x86 is for 32 bit x64 is for 64 bit machines, i recommend use x86 only
    6. Once you have downloaded the correct version for your php, extract the downloaded file to imagick folder you have added to path, take all files from bin folder to the root of imagick and replace all
    7. Add full path to php_imagick.dll in php.ini like extension=C:\wamp\php\ext\imagick\php_imagick.dll
    8. Restart your computer for path to take effect. Then open command and type dcraw and press enter. if you have added the path correctly a list of parameters will be shown, your Imagick is installed sucessfully.
    9. Run phpinfo again and you will see Imagick listed as extension.

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

    08-28 14:31