安装php,zip模块

cd /usr/local/
wget http://pecl.php.net/get/zip-1.12.4.tgztar xvf zip-1.12.4.tgz -C /usr/local/  cd /usr/local/zip-1.12.4/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-configmake && make install
安装完成后会在/usr/local/php/lib/php/extensions/下生成no-debug-non-zts-xxxxxxxx的目录,其中包含了zip.so
vim /etc/php.ini或者vim /usr/local/php5/etc/php.ini
添加一行
extension=/usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/zip.so


安装curl模块和上边一样

pdo_mysql

ln -s /usr/local/mysql/include/* /usr/local/include/

cd /home/php-5.5.38/ext/pdo_mysql

/usr/local/php5/bin/phpize

./configure --with-php-config=/usr/local/php5/bin/php-config