php 安装zip模块

来自:互联网
时间:2019-11-08
阅读:

为php安装zip扩展 pGj免费资源网

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

出现错误:pGj免费资源网

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.

解决方法:pGj免费资源网

 yum install m4
 yum install autoconf

再安装:pGj免费资源网

/home/xxx/php/bin/phpize
./configure  --with-php-config=/home/xxx/php/bin/php-config
make
make install

然后修改php.ini,添加:pGj免费资源网

extension=zip.so

重启apache,查看phpinfo是否安装成功pGj免费资源网

返回顶部
顶部