From f6b94c4ec137bb5b7a11d2ac592b5ab9ea988876 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Fri, 21 Feb 2020 14:08:42 +0100 Subject: [PATCH] fix php.ini & issue --- cyberpanel.sh | 4 ++++ cyberpanel_upgrade.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cyberpanel.sh b/cyberpanel.sh index 9ebbf9f01..14afc9e2d 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1381,6 +1381,10 @@ if [[ ! -f /usr/local/lsws/lsphp74/lib64/php/modules/zip.so ]] && [[ $SERVER_OS fi #fix the lsphp74-zip missing issue. + if [[ $SERVER_OS == "CentOS" ]] ; then + sed -i 's|error_reporting = E_ALL \& ~E_DEPRECATED \& ~E_STRICT|error_reporting = E_ALL \& ~E_DEPRECATED \& ~E_STRICT|g' /usr/local/lsws/{lsphp72,lsphp73}/etc/php.ini + fi +#fix php.ini & issue clear echo "###################################################################" diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 4649929c2..b143bafa1 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -208,6 +208,10 @@ fi install_utility if [[ $SERVER_OS == "CentOS7" ]] ; then + +sed -i 's|error_reporting = E_ALL \& ~E_DEPRECATED \& ~E_STRICT|error_reporting = E_ALL \& ~E_DEPRECATED \& ~E_STRICT|g' /usr/local/lsws/{lsphp72,lsphp73}/etc/php.ini +#fix php.ini & issue + yum list installed lsphp74-devel if [[ $? != "0" ]] ; then yum install -y lsphp74-devel