lb5645284 发表于 2018-12-20 10:33:02

php开启zip扩展

  wget http://pecl.php.net/get/zip-1.10.2.tgz
  tar zxvf zip-1.10.2.tgz
  cd zip-1.10.2
  ./configure --with-php-config=/usr/local/php/bin/php-config

  运行了这个zip目录下会自动生成几个文件,其中包括configure
  ./configure --with-php-config=/usr/local/php/bin/php-config
  make
  make install
  安装完成后打开php.ini在“extension=”下面添加如下一段
  extension=/var/www/php5/lib/php/extensions/no-debug-non-zts-20060613/zip.so
  之后:
  重启apache。
  




页: [1]
查看完整版本: php开启zip扩展