{{wikiTitle}}
后台题库批量导入报错
目录:
后台批量导入试题报错
检查php是否安装zip;# 近期宝塔Linux版本安装的PHP7.3缺少ZIP
如图检查:
如下图就是有zip,若是没有就需要安装
解决办法也很简单,ZIP扩展本来就包含在软件包里,添加回来就可以了:
cd /www/server/php/73/src/ext/zip/
/www/server/php/73/bin/phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make && make install
然后,把以前从PHP配置文件里删去的行加回来:
echo "extension = zip.so" >> /www/server/php/73/etc/php.ini
最后重载一下 PHP 服务后,看看zip是否存在,存在就可以了:
如图:
可以参考https://www.bt.cn/bbs/forum.php?mod=viewthread&tid=36416&page=1#pid121387
若是不会安装,可以换别的PHP版本,v1.7.1以上可兼容PHP7.1、PHP7.2、PHP7.3、PHP7.4;切换PHP版本见




评论({{cateWiki.comment_num}})
{{commentWhere.order ? '评论从旧到新':'评论从新到旧'}}
{{cateWiki.page_view_num}}人看过该文档


评论(0)
{{commentWhere.order ? '评论从旧到新':'评论从新到旧'}}
161人看过该文档




{{item.user ? item.user.nickname : ''}} (自评)
{{item.content}}
{{item.create_time}} 删除




搜索结果
为您找到{{wikiCount}}条结果
{{item.page_view_num}}
{{item.like ? item.like.like_num : 0}}
{{item.comment ? item.comment.comment_num : 0}}
位置:{{path.name}} {{(i+1) == item.catalogue.path_data.length ? '':'/'}}


