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