[RuntimeException]
The Zip PHP extensionisnot installed. Please install it andtry again.
安装php,zip模块
cd /usr/local/src
wget http://pecl.php.net/get/zip-1.12.4.tgz
tar xvf zip-1.12.4.tgz -C /usr/local/
cd /usr/local/zip-1.12.4
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
安装完成后会在/usr/local/php/lib/php/extensions/下生成no-debug-non-zts-xxxxxxxx的目录,其中包含了zip.so
vim /etc/php.ini或者vim /usr/local/php/etc/php.ini
添加一行
extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/zip.so
重新加载或重启fpm
service php-fpm restart
其他zip版本可查看以下连接
http://pecl.php.net/package/zip
以上就介绍了 解决Zip PHP extension is not installed,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
![php中文网最新课程二维码](/static/images/article_wechat2021.jpg?1111)
声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论