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

后端 未结 7 541
一向
一向 2020-12-01 18:45

I am trying to install ziparchive and domdocument on nginx web server that has the latest WordPress. In order to run Avada theme, I need these two on the local CentOS 7 test

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 19:28

    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.

提交回复
热议问题