How can I install zipArchive on PHP 7.2 with CentOS 7?

php-json.x86_64 7.2.3-2.el7.remi @remi-php72

php72-php-json.x86_64 7.2.3-2.el7.remi @remi-safe

Looks like your installation is a mess, you have installed half of the php- packages (base packages) and half of the php72-php- (SCL packages)

Read the FAQ about Difference between php-* and php##-php-* packages ?

php-fpm.x86_64 7.2.3-2.el7.remi @remi-php72

As you are using FPM as base package from remi-php72, you need zip extension from the same repository (which is probably not enabled, chech with yum repolist)

Drop the unneeded packages

yum remove php72\*

As explained by the wizard, enable the repository permanently to ensure all extensions will be pulled from it

yum-config-manager --enable remi-php72
yum install php-pecl-zip

echo “extension=zip.so” >> /etc/php.d/zip.in

Never do this, each package provides its configuration file to enable the provided extension.

Leave a Comment