mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-31 18:33:16 +02:00
Update cyberpanel.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user