解决Zip PHP extension is not installed

WBOY
Release: 2016-07-28 08:29:34
Original
3534 people have browsed it

LAMP环境编译安装,其中php版本为5.6.8,php-fpm已经做成了系统服务,OS版本为CentOS6.x系列

[RuntimeException]                                                        
  The Zip PHP extensionisnot installed. Please install it andtry again.
Copy after login

安装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
Copy after login

其他zip版本可查看以下连接
http://pecl.php.net/package/zip

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了 解决Zip PHP extension is not installed,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!