Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

PHP 安装启用imagick(解决 word press可选的模组imagick未被安装或已被禁用)

 Share


HACK1949

Recommended Posts

本教程仅适用Windows Servier IIS网站服务器。

我的博客使用IIS搭建,相比Linux,相关的教程格外少。因此让以后的小伙伴也能马上解决问题,分享此方法。

首先需要下载php对应版本的imagick 扩展:https://pecl.php.net/package/imagick

这里我选择版本较新的3.4.4 stable稳定版,我的PHP版是7.4.10

image-1024x499.png

 

下载完成后将压缩包解压到你的服务器上,并将路径添加到系统环境变量中。注意路径中不要带有中文、空格、除下划线外的标点符号,确保路径正确。

image-1.png

 

复制解压的imagick根目录中的 php_imagick.dll 粘贴到PHP配置环境下的扩展目录 ext 文件夹下,将根目录中其余文件复制粘贴到php根目录下。

最后php.ini配置文件中添加 extension=php_imagick.dll

image-2.png

 

重启IIS即可生效。

image-3.png

 

使用php –ri imagick查看扩展对应的imagick的软件版本,注意如果不安装对应版本会产生未知错误。

image-4.png

我这里显示的是ImageMagick 7.0.7-11 Q16 x64 2017-11-23

对应版本下载地址:http://ftp.icm.edu.pl/packages/ImageMagick/binaries/ImageMagick-7.0.7-11-Q16-x64-dll.exe

网上虽然能找到到安装程序,但是多数是收费的。

magick安装完成后重启服务器使其生效。

参考文章:

https://www.cnblogs.com/mracale/p/6549464.html

https://www.cnblogs.com/sanplit/p/7818635.html

https://imagemagick.org/download/binaries/

Link to post
Link to comment
Share on other sites

 Share

discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...