提示 Fatal error: Class 'ZipArchive' not found这个的原因是需要安装pecl库中的zip扩展库,安装过程如下:
tar -xzvf zip-1.13.4.tgz
cd zip-1.13.4
phpize
./configure --with-php-config=/usr/local/cp-php-5.6.19/bin/php-config
make && make install
make clean && make distclean
cd ../
#配置php扩展
echo 'extension=zip.so' >> /usr/local/cp-php-5.6.19/lib/php.ini
#重启后才能生效
service httpd restart