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

后端 未结 7 539
一向
一向 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:29

    This method works for me: First type: yum search zip |grep -i php then it will appear you all modules related to ZIP extensions with various of PHP version like so:

    ea-php54-php-zip.x86_64 : A module for PHP applications that need to handle .zip
    ea-php55-php-zip.x86_64 : A module for PHP applications that need to handle .zip
    ea-php56-php-zip.x86_64 : A module for PHP applications that need to handle .zip
    ea-php70-php-zip.x86_64 : A module for PHP applications that need to handle .zip
    ea-php71-php-zip.x86_64 : A module for PHP applications that need to handle .zip
    ea-php72-php-zip.x86_64 : A module for PHP applications that need to handle .zip
    ea-php73-php-zip.x86_64 : A module for PHP applications that need to handle .zip
    

    select whatever version you working with by: yum install ea-php72-php-zip.x86_64 finally, restart the Apache through service httpd restart

提交回复
热议问题