aka134652 发表于 2023-2-7 10:42:04

php升级ImageMagic

军哥,最近ImageMagic有漏洞,想请教下怎么升级,我的php版本,是5.6的,ImageMagic版本要升级到ImageMagick-7.1.0-61。
我想通过脚本卸载掉旧的ImageMagick,然后重新安装,在src里面已经下载并放上去最新版本的ImageMagick,但是不清楚脚本里面哪里设定了,找的版本还是旧的,下面是日志
Notice: ImageMagick-7.0.10-53.tar.xz not found!!!download now...
--2023-02-07 10:30:53--https://soft.vpser.net/web/imagemagick/ImageMagick-7.0.10-53.tar.xz
Resolving soft.vpser.net (soft.vpser.net)... failed: Name or service not known.
wget: unable to resolve host address ‘soft.vpser.net’
Uncompress ImageMagick-7.0.10-53.tar.xz...
tar (child): ImageMagick-7.0.10-53.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
cd ImageMagick-7.0.10-53...
include/main.sh: line 487: cd: ImageMagick-7.0.10-53: No such file or directory
include/imageMagick.sh: line 49: ./configure: No such file or directory
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
Notice: imagick-3.5.1.tgz not found!!!download now...
--2023-02-07 10:30:53--https://soft.vpser.net/web/imagick/imagick-3.5.1.tgz
Resolving soft.vpser.net (soft.vpser.net)... failed: Name or service not known.
wget: unable to resolve host address ‘soft.vpser.net’
Uncompress imagick-3.5.1.tgz...


licess 发表于 2023-2-7 14:20:21

只放到 src 目录下肯定是不行的,还要修改 include/version.sh 中对应的选项版本

明月登楼 发表于 2023-2-28 09:33:22

WordPress 总是提示缺少ImageMagic扩展,PHP里安装了ImageMagic扩展依旧还是提示缺少!不知道啥问题?
并且,8.1.7下安装完ImageMagic后PHP总是出现警告错误!

licess 发表于 2023-2-28 18:20:15

明月登楼 发表于 2023-2-28 09:33
WordPress 总是提示缺少ImageMagic扩展,PHP里安装了ImageMagic扩展依旧还是提示缺少!不知道啥问题?
并 ...

wordpress应该不依赖imagemagic,具体提示什么错误消息?
页: [1]
查看完整版本: php升级ImageMagic