1、如果还没有安装php,可以在编译的时候使用--enable-zip来支持zip拓展。由于已经安装了php,为了避免重新编译php,我们在现有基础上安装zip。

3、安装zip:(1)下载 http://pecl.php.net/get/zip(下载工具请自主选择)(2)tar -zxvf zip(3)cd zip-1.17.1(4)/usr/local/php/bin/phpize(5)./configure --with-php-config=/usr/local/php/bin/php-config(6)make && make install

5、重启apache:/usr/local/httpd/bin/apachectl restart
