Linux平台下PHP安装zip模块
时间:2010-05-04 来源:myjiushizhe
1、依次运行以下命令:
wget http://pecl.php.net/get/zip-1.8.10.tgz
tar zxvf zip-1.8.3.tgz
cd zip-1.8.3
/opt/php/bin/phpize (对应的phpize路径)
configure --with-php-config=/opt/php/bin/php-config (对应的php-config路径)
make
make install
2、生成的模块路径:
/opt/php/lib/php/extensions/no-debug-non-zts-20050922/zip.so (对应的extensions路径)
3、修改php.ini
extension_dir = "./"修改为extension_dir = "/opt/php/lib/php/extensions/no-debug-non-zts-20050922/"
增加extension=zip.so
wget http://pecl.php.net/get/zip-1.8.10.tgz
tar zxvf zip-1.8.3.tgz
cd zip-1.8.3
/opt/php/bin/phpize (对应的phpize路径)
configure --with-php-config=/opt/php/bin/php-config (对应的php-config路径)
make
make install
2、生成的模块路径:
/opt/php/lib/php/extensions/no-debug-non-zts-20050922/zip.so (对应的extensions路径)
3、修改php.ini
extension_dir = "./"修改为extension_dir = "/opt/php/lib/php/extensions/no-debug-non-zts-20050922/"
增加extension=zip.so
相关阅读 更多 +