The person who developed this morning came to me and said that the XX project on the test machine reported a mistake:
include (ziparchive.php): Failed to open stream:no such file or directory.
said that there is no zip this module, so in the Internet to find some information to see, really do not have this module, and then download this package, installation, the results of the error, the initial Zip package version is 1.10.2, error after feeling not to strength, so the next 1.12.4 the latest version, the results were successful.
The errors of the previous 1.10.2 report are:
Make: * * * [Php_zip.lo] Error 1ERROR: ' Make ' failed
So I changed the version and tried again, 1.12.4:
[Email protected] data]# wget http://pecl.php.net/get/zip-1.12.4.tgz[[email protected] data]# tar zxvf zip-1.12.4.tgz[ [Email protected] data]# CD Zip-1.12.4[[email protected] zip-1.12.4]#/usr/local/php/bin/phpize[[email protected] zip-1.12.4]#./configure--with-php-config=/usr/local/php/bin/php-config[[email protected] zip-1.12.4]# Make[[email Protected] zip-1.12.4]# make install
Various versions of Zip can be downloaded to the following websites:
Http://pecl.php.net/package/zip
After the installation, modify the php.ini configuration file, plus the following extensions:
[Email protected] zip-1.12.4]# vim/etc/php.iniextension=/usr/local/php/lib/php/extensions/ No-debug-non-zts-20100525/zip.so
Then reload the PHP-FPM to:
[[Email protected] www]# service php-fpm reloadreload service php-fpm Done
This article is from the "boiled frog with boiling water" blog, please make sure to keep this source http://tanxw.blog.51cto.com/4309543/1618576
Add a php zip module under Linux