From d0f81a63f509b4c1f71d366ff36f0fe6a0277073 Mon Sep 17 00:00:00 2001 From: WhatTheServer Date: Tue, 8 Jun 2021 18:11:31 -0400 Subject: [PATCH] Update cyberpanel.sh --- cyberpanel.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 47c428781..4400efb5d 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1752,7 +1752,29 @@ if [[ "$Server_OS" = "CentOS" ]] ; then if [[ "$Server_OS_Version" = "7" ]] ; then #all centos 7 specific post change goes here - : + if ! yum list installed lsphp74-devel ; then + yum install -y lsphp74-devel + fi + if [[ ! -f /usr/local/lsws/lsphp74/lib64/php/modules/zip.so ]] ; then + if yum list installed libzip-devel >/dev/null 2>&1 ; then + yum remove -y libzip-devel + fi + 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 + if [[ ! -d /usr/local/lsws/lsphp74/tmp ]]; then + mkdir /usr/local/lsws/lsphp74/tmp + fi + /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 + if /usr/local/lsws/lsphp74/bin/pecl install zip ; then + 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 + else + echo -e "\nlsphp74-zip compilation failed..." + fi + #fix compile lsphp74-zip on centos 7 + fi fi if [[ "$Server_OS_Version" = "8" ]] ; then