Home  >  Article  >  Backend Development  >  php install zip module

php install zip module

藏色散人
藏色散人forward
2019-11-06 13:53:315044browse

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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete