您的位置 首页 php

php 安装zip模块

为php安装zip扩展

wget http://pecl.php.net/get/zip-1.13.5.tgztar -zvxf zip-1.13.5.tgzcd 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-configmakemake install

然后修改php.ini,添加:

extension=zip.so

重启apache,查看phpinfo是否安装成功

以上就是php 安装zip模块的详细内容,更多请关注求知技术网其它相关文章!

文章来源:智云一二三科技

文章标题:php 安装zip模块

文章地址:https://www.zhihuclub.com/2845.shtml

关于作者: 智云科技

热门文章

网站地图