dpgvdfg321041670 2014-02-25 16:45
浏览 38
已采纳

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

I need install ImageMagick for PHP 5.4.7 on Windows.

How do I install it?

  • 写回答

1条回答 默认 最新

  • duanping2005 2014-02-25 16:45
    关注

    Step by step:

    1. Download the binary version for Windows Install you binary version.
    2. Test you install in CMD
      1. Execute convert in CMD.
    3. If this work, the intall is success.
    4. Now, download Imagemagick DLL for PHP
    5. Open imagemagick-php54-php53.tgz
    6. In Explorer, go to PHP extension folder
      1. PHP: C:\php\ext\
      2. XAMP: C:\xampp\php\ext\
    7. Copy TS or NTS DLL's (php_imagick_(nts|ts).dll) from imagemagick-php54-php53.tgz:
      1. For PHP 5.3
        1. imagick-php54-php53.tgz\imagick\php53
      2. For PHP 5.4
        1. imagick-php54-php53.tgz\imagick\php54
    8. Paste in you PHP Extension folder.
    9. In explorer, edit you php.ini
    10. Add the follow line:

    if you use TS

    extension=php_imagick_ts.dll
    

    If you use NTS

    extension=php_imagick_nts.dll
    

    Now, restart you apache/ngnex server.

    IMPORTANT!

    If you have a error to start apache/ngnex with the message Unable to find CORE_RL_Wand.dll something something.

    1. Open imagemagick-php54-php53.tgz
    2. Go to imagick-php54-php53.tgz\imagick\ImageMagick-x.x.x-vcx\
      1. In my case imagick-php54-php53.tgz\imagick\ImageMagick-6.8.0-vc9
    3. In explorer go to:
      1. Win 32: C:\Windows\System32\
      2. Win 64: C:\Windows\SysWOW64\
    4. Uncompress all DLL's from imagick-php54-php53.tgz\imagick\ImageMagick-x.x.x-vcx\
    5. And start you apache/ngnex server.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊