ZIP archive management extension for PHP Bug — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

ZIP archive management extension for PHP Bug

edited February 2020 in Bug Report
Im using plugin for export data and i gor error:

ZipArchive class is missing on your server.
Please contact your web hosting provider and ask them to install and activate ZipArchive.

Im trying install ZIP archive management extension for PHP much more times but, it's still dispaly

Package lsphp74-common-7.4.2-1.el7.x86_64 already installed and latest version
Nothing to do
PHP Extension Installed.

Comments

  • edited February 2020
    Type your comment> @hennaboy said:
    > Not a bug. Zip is not available for PHP74 as the library is too old in centos7.
    >
    > Either use 73 or use the workaround
    >
    > https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:pecl-extension:lsphp74_zip

    Cannot open: http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-devel-0.11.2-6.el7.psychotic.x86_64.rpm. Skipping.
    Error: Nothing to do
  • Type your comment> @hennaboy said:
    > Seems like psychotic.ninja is no more.
    >
    > Get the rpms from
    >
    > http://mirrors.linuxeye.com/oneinstack-repo/7/x86_64/

    yes, installed ok, but now still cant working @@
  • lsphp74 Zip Extension Issues With CentOS 7.x

    If the zip extension for lsphp74 does not exist or is not working on a CentOS 7.x system, this is because CentOS 7 comes with an old libzip library that does not support PHP 7.4.

    Solution:
    In order to fix this issue, we need to manually compile and install the zip extension for PHP 7.4, as follows.

    Install the two dependency packages:

    yum install http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-0.11.2-6.el7.psychotic.x86_64.rpm

    yum install http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-devel-0.11.2-6.el7.psychotic.x86_64.rpm
    Use pecl to install zip:

    /usr/local/lsws/lsphp74/bin/pecl install zip

    echo "extension=zip.so" > /usr/local/lsws/lsphp74/etc/php.d/20-zip.ini
    Kill or restart lsphp so that the changes may take effect:

    pkill lsphp
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!