Add zip and curl extensions in PHP
Compile and install the LAMP environment. The php version is 5.6.8, the php-fpm has been made into system services, and the OS version is CentOS6.x series.
[RuntimeException] The Zip PHP extension is not installed. Please install it and try again.
Install the php and zip modules
Cd/usr/local/srcwget 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 the no-debug-non-zts-xxxxxxxx directory is generated under/extensions, it contains the zip file. sovim/etc/php. ini or vim/usr/local/php/etc/php. ini add a line of extension =/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/zip. so reload or restart fpmservice php-fpm restart
For other zip versions, view the following connections:
Http://pecl.php.net/package/zip
Add curl Extension
cd /usr/local/src/php-5.6.8/ext/curl/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-configmake && make installecho "extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/curl.so" >>/etc/php.iniservice php-fpm restart/usr/local/php/bin/php -m | grep curl
This article permanently updates the link address: