CyberKeeda In Social Media

PHP How to install, configure and enable ZIP Extension from source code within centos / rhel 6



So Enabling ZIP within PHP 5.6 dose not meet with the common approach of enabling a extension, Since it requires the libzip packages with a greater version of 0.11 or more.

RHEL ships libzip greater then 0.9 with RHEL 7.3 or more, hence the approach for enabling this must be slight different.


To avoid these challenges, we must go the way of installation of modules using PECL

Download Packages as required from --  http://pecl.php.net/package/zip

Here I have downloaded     zip-1.11.0.tgz

Now just execute the below mentioned PECL command.

# pecl install zip-1.11.0.tgz

# pecl uninstall XXXX

Though it will guide it to rest of the work but still I too want to add.

Locate your php.ini file and the

You should add "extension=zip.so" to php.ini

Once you are done, remember to reload/restart apache to apply the effect / changes.

Verify -: You should see, something like below within your phpinfo.php page






No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
Designed By Kunal Saha