把zip.so分别软链接目录在/usr/local/lib64 和 lib 目录下,并ldconfig
ln -s /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/zip.so /usr/lib64/zip.so && ldconfig ln -s /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/zip.so /usr/lib/zip.so && ldconfig ldconfig /usr/local/lib ldconfig /usr/local/lib64
重启php-fpm
php -m|grep zip
查看是否有了zip模块有了就解决了,如果还不行?
重新编译安全libzip
1、安装cmake
下载最新版cmake https://cmake.org/files
https://cmake.org/files/v3.22/cmake-3.22.1-linux-x86_64.sh
yum remove cmake chmod 777 cmake-3.22.1-linux-x86_64.sh ./cmake-3.22.1-linux-x86_64.sh vi /etc/profile export CMAKE_HOME="/opt/tools/cmake-3.22.1-linux-x86_64" export PATH="$CMAKE_HOME/bin:$PATH" source /etc/profile
2、安装libzip (1.8需要cmake3以上版本)
下载libzip最新版
https://libzip.org/download/
tar -xvzf libzip-1.8.0.tar.gz cd libzip-1.8.0 mkdir bulid cd bulid cmake .. make make install
微信扫一扫,打开小程序浏览更便捷
原创文章,作者:howkunet,如若转载,请注明出处:https://www.intoep.com/system/linux/3847.html