and this show?
for version in $(ls /usr/local/lsws|grep lsphp); do echo “LSPHP $version”; /usr/local/lsws/${version}/bin/php -i |grep Libzip; done
Also have you restarted LS/OLS since installing them or stopped and started it? Also restart detached php processes or “killall lsphp” as root to ensure its closed stuff
Should look something like this:
[root@wcloud:~]# for version in $(ls /usr/local/lsws|grep lsphp); do echo “LSPHP $version”; /usr/local/lsws/${version}/bin/php -i |grep Libzip; done
LSPHP lsphp70
Libzip version => 1.1.2
LSPHP lsphp71
Libzip version => 1.1.2
LSPHP lsphp72
Libzip version => 1.1.2
LSPHP lsphp73
Libzip version => 1.1.2
[root@wcloud:~]# yum list installed |grep zip
bzip2.x86_64 1.0.6-13.el7 @base
bzip2-devel.x86_64 1.0.6-13.el7 @base
bzip2-libs.x86_64 1.0.6-13.el7 @CentOS
gzip.x86_64 1.5-10.el7 @CentOS
libzip.x86_64 0.10.1-8.el7 @base
lsphp70-zip.x86_64 7.0.33-9.el7 @litespeed-update-mirror
lsphp71-zip.x86_64 7.1.33-3.el7 @litespeed-update-mirror
lsphp72-zip.x86_64 7.2.26-1.el7 @litespeed-mirror
lsphp73-zip.x86_64 7.3.13-2.el7 @litespeed-update-mirror
perl-Compress-Raw-Bzip2.x86_64 2.061-3.el7 @base
unzip.x86_64 6.0-20.el7 @base
zip.x86_64 3.0-11.el7 @base
[root@wcloud:~]#
updates: mirror.lax.genesisadaptive.com
Package lsphp74-common-7.4.1-1.el7.x86_64 already installed and latest version
Nothing to do
PHP Extension Installed.
You know what your right. It looks like lsphp74-zip is missing from the repo and supposed to be included in that rpm but doesn’t show as available in the module when checking php modules.
for version in $(ls /usr/local/lsws|grep lsphp); do echo “LSPHP $version”; /usr/local/lsws/${version}/bin/php -m |grep -i zip;echo “”; done
LSPHP lsphp70
zip
updates: mirrors.advancedhosters.com
Package lsphp71-zip-7.1.33-3.el7.x86_64 already installed and latest version
Package lsphp70-zip-7.0.33-9.el7.x86_64 already installed and latest version
Package lsphp73-zip-7.3.13-2.el7.x86_64 already installed and latest version
Package lsphp72-zip-7.2.26-1.el7.x86_64 already installed and latest version
Nothing to do
[root@wcloud:~]# yum install lsphp74-zip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
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.
I have tried everything commented above with no success!
Apparently the zip extension is already installed as I received a response
I have PHP8.0.
I have copied a screenshot of the results from entering the above:
Thank you for the comment! Unfortunately I had some issues.
When I entered the following:
# install latest version of zip $ /usr/local/lsws/lsphp74/bin/pecl install zip # install specific version of zip $ /usr/local/lsws/lsphp74/bin/pecl install zip-1.21.1
I receive an error that the extension is already installed and is the same as the release version 1.21.1 install failed.
Also I added the info.php file and tried to access from the url but it goes to a 403 forbidden error page.
I checked permissions for info.php using file manager and enabled read and execute for User, Group and World but it still goes to the error page.