usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.6k stars 613 forks source link

Won't install zip #193

Closed ghost closed 4 years ago

ghost commented 4 years ago

image

image

Won't install zip

ghost commented 4 years ago

Yes, i can reproduce from my end too.

usmannasir commented 4 years ago

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

ghost commented 4 years ago

image

No zip.

hennaboy commented 4 years ago

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

ghost commented 4 years ago

@usmannasir need to update the buildconf of zip

Zip: --with-libzip has been removed. --enable-zip becomes --with-zip .

ghost commented 4 years ago

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

qtwrk commented 4 years ago

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.

hifihedgehog commented 4 years ago

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

hifihedgehog commented 4 years ago

@usmannasir Please see above.

qtwrk commented 4 years ago

Hi,

It's already added into installer and upgrad script.

hifihedgehog commented 4 years ago

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

hifihedgehog commented 4 years ago

I opened a ticket with LiteSpeed. Here is the LiteSpeed support ticket number for reference:

849041

hifihedgehog commented 4 years ago

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.

spacevega21 commented 3 years ago

I used the commands here > https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:pecl-extension:lsphp74_zip // and still getting the same issue >

Loaded plugins: copr, fastestmirror Loading mirror speeds from cached hostfile