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)...