Home >Backend Development >PHP Tutorial >Linux installation PHP extension zip module

Linux installation PHP extension zip module

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-25 09:11:491036browse

Linux installs the PHP extension zip module for your reference. 1. Run the following commands in sequence:

  1. wget http://pecl.php.net/get/zip-1.8.10.tgz

  2. #tar zxvf zip-1.8.3.tgz

  3. #cd zip-1.8.3
  4. #/opt/php/bin/phpize (corresponding phpize path)
  5. #./configure --with-php-config=/opt/php/bin /php-config (corresponding php-config path)
  6. #make
  7. #make install

Copy code

2. Generated module path:

  1. /opt/php/ lib/php/extensions/no-debug-non-zts-20050922/zip.so
Copy code

(corresponding extensions path)

3. Modify php.ini extension_dir = "./" change into extension_dir = "/opt/php/lib/php/extensions/no-debug-non-zts-20050922/" Increase extension="zip.so"

4. Restart apache, or php-cgi.



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn