Closed ghost closed 4 years ago
Yes, i can reproduce from my end too.
Can you create PHPinfo page and see if zip exits or not https://forums.cyberpanel.net/discussion/1077/tutorial-how-to-create-a-phpinfo-page
No zip.
yum search all lsphp74
There is no zip package.
Looking at
https://forum.openlitespeed.org/threads/bzip2-and-zip-support-in-lsphp7-4.4012/
They are looking to push the packages so should be resolved soon
@usmannasir need to update the buildconf of zip
Zip: --with-libzip has been removed. --enable-zip becomes --with-zip .
My bad if its from repo i think litespeed has to fix it from their end.
Atm i have to recompile php from litespeed panel by editing /usr/local/lsws/admin/html/utility/build_php/buildconf.inc.php
Hi,
Yes, it needs to be fixed from source by LiteSpeed tech.
You don't have to re-compile entire PHP though , only zip extension ought do it.
Here is the workaround: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:pecl-extension:lsphp74_zip
Source (LiteSpeed Slack channel): https://golitespeed.slack.com/archives/C3RMQ3KGW/p1581011218070600
@usmannasir Please see above.
Hi,
It's already added into installer and upgrad script.
For some reason, it's still failing. I received the following error:
shtool at '/var/tmp/zip/build/shtool' does not exist or is not executable. Make sure that the file exists and is executable and then rerun this script.
ERROR: `phpize' failed
I opened a ticket with LiteSpeed. Here is the LiteSpeed support ticket number for reference:
Solved:
yum install lsphp74-devel
mkdir /usr/local/lsws/lsphp74/tmp
/usr/local/lsws/lsphp74/bin/pecl channel-update pecl.php.net
/usr/local/lsws/lsphp74/bin/pear config-set temp_dir /usr/local/lsws/lsphp74/tmp
/usr/local/lsws/lsphp74/bin/pecl install zip
echo "extension=zip.so" > /usr/local/lsws/lsphp74/etc/php.d/20-zip.ini
chmod 755 /usr/local/lsws/lsphp74/lib64/php/modules/zip.so
the /tmp was mounted with noexec , that means no files can be executed in /tmp for security reason.
by default , pear and pecl uses /tmp , so use config-set temp_dir to change it to other dir and then build it.
Loaded plugins: copr, fastestmirror Loading mirror speeds from cached hostfile
Won't install zip