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 archive management extension for PHP 7.4 and above (CentOS 7) #628

Closed spacevega21 closed 3 years ago

spacevega21 commented 3 years ago

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


I have followed the commands linked here > https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:pecl-extension:lsphp74_zip?rev=1580248954 // but I am still getting the same issue...

qtwrk commented 3 years ago

What's the OS?

What error you see whhe you follow that wiki?

spacevega21 commented 3 years ago

CentOS 7. The commands ran pefectly and I was still unable to install Zip PHP. I got the same message as shown in the above message.

spacevega21 commented 3 years ago
Screenshot 2021-05-29 at 13 44 20 Screenshot 2021-05-29 at 13 44 30
qtwrk commented 3 years ago

try

yum remove -y libzip-devel
yum install -y https://cyberpanel.sh/misc/libzip-0.11.2-6.el7.psychotic.x86_64.rpm
yum install -y https://cyberpanel.sh/misc/libzip-devel-0.11.2-6.el7.psychotic.x86_64.rpm
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
pkill lsphp

then check with phpinfo page

spacevega21 commented 3 years ago

Do I type in ---- echo "extension=zip.so" ??

Screenshot 2021-05-29 at 15 25 11
qtwrk commented 3 years ago

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

this will do that for you

spacevega21 commented 3 years ago

Okay thank you, I have ran that command now.

qtwrk commented 3 years ago

it says zip is already installed , you can verify with phpinfo

spacevega21 commented 3 years ago

Just typed in the php command phpinfo() and nothing is appearing.

qtwrk commented 3 years ago

you need to create it as page and access it by browser , or /usr/local/lsws/lsphp74/bin/lsphp -i | grep -i zip

qtwrk commented 3 years ago

so you do have zip extension installed

spacevega21 commented 3 years ago

It's just that when I go to Cyberpanel and try to install it. It doesn't show the extenstion as installed afterwards...

Before:

Screenshot 2021-05-29 at 16 00 10

After:

Screenshot 2021-05-29 at 16 01 37
qtwrk commented 3 years ago

yes, it's little known display bug

despite the panel shows not installed , but it is actually installed already

spacevega21 commented 3 years ago

Thank you :)