Home > php教程 > php手册 > PHP zip扩展Linux下安装过程分享

PHP zip扩展Linux下安装过程分享

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:22:46
Original
1265 people have browsed it

这篇文章主要介绍了PHP zip扩展Linux下安装过程分享,需要的朋友可以参考下

1.依次运行以下命令

复制代码 代码如下:

wget
#tar zxvf zip-1.8.3.tgz
#cd zip-1.8.3
#/opt/php/bin/phpize   (对应的phpize路径)
#./configure --with-php-config=/opt/php/bin/php-config (对应的php-config路径)
#make
#make install

2.生成的模块路径

复制代码 代码如下:

/opt/php/lib/php/extensions/no-debug-non-zts-20050922/zip.so


3.修改php.ini

复制代码 代码如下:


extension_dir = "./"
;修改为
extension_dir = "/opt/php/lib/php/extensions/no-debug-non-zts-20050922/"
;增加
extension="zip.so"


4.重启apache或php-cgi

 

Related labels:
php
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 admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template