To install php zip extension
wget http://pecl.php.net/get/zip-1.13.5.tgz tar -zvxf zip-1.13.5.tgz cd zip-1.13.5 /home/xxx/php/bin/phpize
An error occurred:
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
Solution:
yum install m4
yum install autoconf
Install:
/home/xxx/php/bin/phpize ./configure --with-php-config=/home/xxx/php/bin/php-config make make install
Then modify php.ini, adding:
extension=zip.so
Restart apache, phpinfo to see if the installation was successful.
Link: https: //www.php.cn/php-weizijiaocheng-434549.html