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.

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

yum install

Use pecl to install zip:

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

echo "" > /usr/local/lsws/lsphp74/etc/php.d/20-zip.ini

Kill or restart lsphp so that the changes may take effect:

pkill lsphp
  • Admin
  • Last modified: 2020/01/28 22:02
  • by Lisa Clarke