Home > Backend Development > PHP Tutorial > Sharing the installation process of PHP zip extension under Linux_PHP tutorial

Sharing the installation process of PHP zip extension under Linux_PHP tutorial

WBOY
Release: 2016-07-13 10:30:30
Original
934 people have browsed it

1. Run the following commands in sequence

Copy the code The code is as follows:
wget http://pecl .php.net/get/zip-1.8.10.tgz
#tar zxvf zip-1.8.3.tgz
#cd zip-1.8.3
#/opt/php/bin/phpize ( Corresponding phpize path) http://yige.org/
#./configure --with-php-config=/opt/php/bin/php-config (Corresponding php-config path)
# make
#make install

2. Generated module path

Copy the code The code is as follows:
/opt/php/lib /php/extensions/no-debug-non-zts-20050922/zip.so

3. Modify php.ini
Copy code The code is as follows:

extension_dir = "./"
; modified to
extension_dir = "/opt/php/lib/php/extensions/no-debug -non-zts-20050922/"
;Add
extension="zip.so"

4. Restart apache or php-cgi

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/765163.htmlTechArticle1. Run the following commands in sequence to copy the code. The code is as follows: wget http://pecl.php.net/get/ zip-1.8.10.tgz #tar zxvf zip-1.8.3.tgz #cd zip-1.8.3 #/opt/php/bin/phpize (corresponding phpize path)...
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template