您好,欢迎来到筏尚旅游网。
搜索
您的当前位置:首页php安装zip模块

php安装zip模块

来源:筏尚旅游网

为php安装zip扩展

wget http://pecl.php.com/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是否安装成功

Copyright © 2019- efsc.cn 版权所有 赣ICP备2024042792号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务