简体   繁体   English

如何在 Windows 8 x64 上为 PHP5.3/5.4 安装 ImageMagick

[英]How to install ImageMagick for PHP5.3/5.4 on Windows 8 x64

I need install ImageMagick for PHP 5.4.7 on Windows.我需要在 Windows 上为 PHP 5.4.7 安装 ImageMagick。

How do I install it?我该如何安装?

Step by step:一步步:

  1. Download the binary version for Windows Install you binary version.下载 Windows 的二进制版本安装二进制版本。
  2. Test you install in CMD测试你在 CMD 中安装
    1. Execute convert in CMD .CMD执行convert
  3. If this work, the intall is success.如果这项工作,安装是成功的。
  4. Now, download Imagemagick DLL for PHP现在,下载用于 PHP 的Imagemagick DLL
  5. Open imagemagick-php54-php53.tgz打开 imagemagick-php54-php53.tgz
  6. In Explorer, go to PHP extension folder在资源管理器中,转到 PHP 扩展文件夹
    1. PHP: C:\\php\\ext\\ PHP: C:\\php\\ext\\
    2. XAMP: C:\\xampp\\php\\ext\\ XAMP: C:\\xampp\\php\\ext\\
  7. Copy TS or NTS DLL's ( php_imagick_(nts|ts).dll ) from imagemagick-php54-php53.tgz:从 imagemagick-php54-php53.tgz 复制TSNTS DLL( php_imagick_(nts|ts).dll ):
    1. For PHP 5.3对于 PHP 5.3
      1. imagick-php54-php53.tgz\\imagick\\php53 imagick-php54-php53.tgz\\imagick\\php53
    2. For PHP 5.4对于 PHP 5.4
      1. imagick-php54-php53.tgz\\imagick\\php54 imagick-php54-php53.tgz\\imagick\\php54
  8. Paste in you PHP Extension folder.粘贴到您的 PHP 扩展文件夹中。
  9. In explorer, edit you php.ini在资源管理器中,编辑您的 php.ini
  10. Add the follow line:添加以下行:

if you use TS如果你使用 TS

extension=php_imagick_ts.dll

If you use NTS如果您使用 NTS

extension=php_imagick_nts.dll

Now, restart you apache/ngnex server.现在,重启你的 apache/ngnex 服务器。

IMPORTANT!重要的!

If you have a error to start apache/ngnex with the message Unable to find CORE_RL_Wand.dll something something .如果您在启动 apache/ngnex 时出错并显示消息Unable to find CORE_RL_Wand.dll something something

  1. Open imagemagick-php54-php53.tgz打开 imagemagick-php54-php53.tgz
  2. Go to imagick-php54-php53.tgz\\imagick\\ImageMagick-xxx-vcx\\转到imagick-php54-php53.tgz\\imagick\\ImageMagick-xxx-vcx\\
  3. In my case imagick-php54-php53.tgz\\imagick\\ImageMagick-6.8.0-vc9在我的情况下imagick-php54-php53.tgz\\imagick\\ImageMagick-6.8.0-vc9
  4. In explorer go to:在资源管理器中转到:
  5. Win 32: C:\\Windows\\System32\\ Win 32: C:\\Windows\\System32\\
  6. Win 64: C:\\Windows\\SysWOW64\\ Win 64: C:\\Windows\\SysWOW64\\
  7. Uncompress all DLL's from imagick-php54-php53.tgz\\imagick\\ImageMagick-xxx-vcx\\imagick-php54-php53.tgz\\imagick\\ImageMagick-xxx-vcx\\解压所有 DLL
  8. And start you apache/ngnex server.并启动您的 apache/ngnex 服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM