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
http://www.bkjia.com/PHPjc/765163.htmlwww.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)...
Statement: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