為php安裝zip擴充套件
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
出現錯誤:
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
解決方法:
yum install m4
yum install autoconf
再安裝:
/home/xxx/php/bin/phpize
./configure --with-php-config=/home/xxx/php/bin/php-config
make
make install
然後修改php.ini,新增:
extension=zip.so
重啟apache,檢視phpinfo是否安裝成功