This is an old revision of the document!


You may encounter an issue that zip extension for lsphp74 does not exist or not working in Centos 7.X system.

The reason for that is CentOS 7.X comes with an old libzip that does not support PHP 7.4

so in order to fix this issue , we will need to manually compile and install zip extension for php7.4

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

Install those 2 packages , they are required for compilation.

and then use pecl to install it

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

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

and finally kill or restart lsphp to take effect.

pkill lsphp
  • Admin
  • Last modified: 2020/01/28 16:34
  • by qtwrk