From 6595016fff740533e5b1a5ab082f071b10130d57 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Tue, 18 Feb 2020 22:13:38 +0100 Subject: [PATCH 1/4] update some FAQs --- faq.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/faq.sh b/faq.sh index b068f6fbb..454101017 100644 --- a/faq.sh +++ b/faq.sh @@ -80,4 +80,29 @@ ${BLUE}------------------------------------------------------------${NC} ${PURPLE}9.${NC} How to enable Auto-Index for my site ? Please check this post ${GREEN}https://forums.cyberpanel.net/discussion/3850/tutorial-how-to-enable-auto-index-on-openlitespeed-and-litespeed-enterprise${NC} + +${BLUE}------------------------------------------------------------${NC} + +${PURPLE}10.${NC} How to add additional headers for my website ? + +Please check this post ${GREEN}https://openlitespeed.org/kb/how-to-set-up-custom-headers/${NC} + +${BLUE}------------------------------------------------------------${NC} + +${PURPLE}11.${NC} How to mimic Apache deny/allow directive ? + +Please check this post ${GREEN}https://openlitespeed.org/kb/access-control/${NC} + +${BLUE}------------------------------------------------------------${NC} + +${PURPLE}12.${NC} How to fix max_allowed_packet error ? + +You may see this error when your PHP script requires a larger packet size + +add following code into ${RED}/etc/my.cnf${NC} + +${GREEN}[mysqld] +max_allowed_packet=500M${NC} + +and then restart MariaDB by command ${RED}systemctl restart mariadb${NC} " From a0da026552e5be78882739a7948963ab4b241531 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Wed, 19 Feb 2020 23:50:34 +0100 Subject: [PATCH 2/4] set watchdog default on and update some help info --- cyberpanel.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 02dbea122..95ced4872 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1082,10 +1082,10 @@ fi echo -e "\nWould you like to set up a WatchDog \e[31m(beta)\e[39m for Web service and Database service ?" echo -e "The watchdog script will be automatically started up after installation and server reboot" echo -e "If you want to kill the watchdog , run \e[31mwatchdog kill\e[39m" -echo -e "Please type Yes or no (with capital \e[31mY\e[39m):" +echo -e "Please type Yes or no (with capital \e[31mY\e[39m, default Yes):" printf "%s" read TMP_YN -if [[ $TMP_YN == "Yes" ]] ; then +if [[ $TMP_YN == "Yes" ]] || [[ $TMP_YN == "" ]] ; then WATCHDOG="ON" else WATCHDOG="OFF" @@ -1398,12 +1398,9 @@ echo " Panel password: $ADMIN_PASS " echo " WebAdmin console username: admin " echo " WebAdmin console password: $WEBADMIN_PASS " echo " " -echo " Please change your default admin password " -echo " If you need to reset your panel password, please run: " -echo " adminPass YOUR_NEW_PASSWORD " -echo " " -echo " If you change mysql password, please modify file in " -echo -e " \e[31m/etc/cyberpanel/mysqlPassword\e[39m with new password as well " +echo -e " Run \e[31mcyberpanel help\e[39m to get FAQ info" +echo -e " Run \e[31mcyberpanel upgrade\e[39m to upgrade it to latest version." +echo -e " Run \e[31mcyberpanel utility\e[39m to access some handy tools ." echo " " echo " Website : https://www.cyberpanel.net " echo " Forums : https://forums.cyberpanel.net " From c6d0298f03dc19f7df909f50d69eea2539de7268 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Thu, 20 Feb 2020 23:28:44 +0100 Subject: [PATCH 3/4] faq update and link fix --- cyberpanel.sh | 2 +- faq.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 95ced4872..9ebbf9f01 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1373,7 +1373,7 @@ if [[ ! -f /usr/local/lsws/lsphp74/lib64/php/modules/zip.so ]] && [[ $SERVER_OS if [[ $? == "0" ]] ; then yum remove -y libzip-devel fi - yum install -y https://$DOWNLOAD_SERVER/libzip-0.11.2-6.el7.psychotic.x86_64.rpm + yum install -y https://$DOWNLOAD_SERVER/misc/libzip-0.11.2-6.el7.psychotic.x86_64.rpm yum install -y https://$DOWNLOAD_SERVER/misc/libzip-devel-0.11.2-6.el7.psychotic.x86_64.rpm /usr/local/lsws/lsphp74/bin/pecl install zip echo "extension=zip.so" > /usr/local/lsws/lsphp74/etc/php.d/20-zip.ini diff --git a/faq.sh b/faq.sh index 454101017..519e6389d 100644 --- a/faq.sh +++ b/faq.sh @@ -105,4 +105,10 @@ ${GREEN}[mysqld] max_allowed_packet=500M${NC} and then restart MariaDB by command ${RED}systemctl restart mariadb${NC} + +${BLUE}------------------------------------------------------------${NC} + +${PURPLE}13.${NC} How to enable PHP error log ? + +Please check this post ${GREEN}https://forums.cyberpanel.net/discussion/3977/tutorial-how-to-enable-php-error-log/p1${NC} " From f6b94c4ec137bb5b7a11d2ac592b5ab9ea988876 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Fri, 21 Feb 2020 14:08:42 +0100 Subject: [PATCH 4/4] 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