PHPzip extends the installation process in Linux. 1. run the following command in sequence to copy the code as follows: wgetpecl. php. netgetzip-1.8.10.tgz # tarzxvfzip-1.8.3.tgz # cdzip-1.8.3 # optphpbinphpize (corresponding phpize path)
1. run the following commands in sequence
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
The code is as follows:
/Opt/php/lib/php/extensions/no-debug-non-zts-20050922/zip. so
3. modify php. ini
The code is as follows:
Extension_dir = "./"
;
Extension_dir = "/opt/php/lib/php/extensions/no-debug-non-zts-20050922 /"
; Added
Extension = "zip. so"
4. restart apache or php-cgi
The ghost 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 )...