usmannasir / cyberpanel

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

php 7.4 zip package #323

Open franciscopaniskaseker opened 4 years ago

franciscopaniskaseker commented 4 years ago

I followed this guide to get zip package to php 7.4: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:pecl-extension:lsphp74_zip

At the end I get:

Build process completed successfully
Installing '/usr/local/lsws/lsphp74/lib64/php/modules/zip.so'
install ok: channel://pecl.php.net/zip-1.18.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=zip.so" to php.ini
Segmentation fault

The build process was "successfull". Reading the phpinfo (core and modules) I can see the zip is enabled and loaded from "/usr/local/lsws/lsphp74/etc/php.d/20-zip.ini" file.

My concern is about "Segmentation fault". This is a critical error from

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

command.

After I did that manual installation, the cyberpanel web interface on php7.4 package list still say:

360 | php74 | lsphp74-zip | ZIP archive management extension for PHP | Not-Installed
-- | -- | -- | -- | --

"Not-installed" info.

And if you try to install, you will get:

Package lsphp74-common-7.4.4-1.el7.x86_64 already installed and latest version
Nothing to do
PHP Extension Installed.

It will not warn the user about the guide https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:pecl-extension:lsphp74_zip and the user will be confuse about what is happening.

So I think I found two problems:

  1. The "Segmentation fault" problem (maybe is a litespeed issue? if yes, I will open the issue there)
  2. The wrong information about lsphp74-zip on cyberpanel web interface
qtwrk commented 4 years ago

Where you see the seg fault ?

by default the installer should install lsphp74-zip on centos 7

franciscopaniskaseker commented 4 years ago

Where you see the seg fault ?

by default the installer should install lsphp74-zip on centos 7

Check the first code block. I pasted the final text printed by pecl install command.

kleozzy commented 3 years ago

This issue persists with centOS 7 PHP 7.4 and PHP 8.0