wget http://pecl.php.net/get/zip-1.13.5.tgz tar -zvxf zip-1.13.5.tgz cd zip-1.13.5 /home/xxx/php/bin/phpize
出现错误:
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
解决方法:
yum install m4 yum install autoconf
再安装:
/home/xxx/php/bin/phpize ./configure --with-php-config=/home/xxx/php/bin/php-config make make install
然后修改php.ini,添加:
extension=zip.so
重启apache,查看phpinfo是否安装成功
php入门到就业线上直播课:查看学习
以上就是php 安装zip模块的详细内容,更多请关注php中文网其它相关文章!
声明:本文转载于:segmentfault,如有侵犯,请联系admin@php.cn删除
前端(VUE)零基础到就业课程:点击学习
自己动手写 PHP MVC 框架:点击学习
![](http://m.sbmmt.com/img/upload/article/000/000/020/633501a29d313483.png)