Home >Backend Development >PHP Tutorial >php install zip module
Install zip extension for php
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
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
Reinstall:
/home/xxx/php/bin/phpize ./configure --with-php-config=/home/xxx/php/bin/php-config make make install
Then modify php.ini and add:
extension=zip.so
Restart apache and check whether phpinfo is installed successfully
The above is the detailed content of php install zip module. For more information, please follow other related articles on the PHP Chinese website!