mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-20 22:42:09 +01:00
merge v1.9.4
This commit is contained in:
@@ -1081,10 +1081,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"
|
||||
@@ -1372,7 +1372,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
|
||||
@@ -1380,6 +1380,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 "###################################################################"
|
||||
@@ -1397,12 +1401,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 "
|
||||
|
||||
@@ -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
|
||||
|
||||
30
faq.sh
30
faq.sh
@@ -83,20 +83,32 @@ Please check this post ${GREEN}https://forums.cyberpanel.net/discussion/3850/tut
|
||||
|
||||
${BLUE}------------------------------------------------------------${NC}
|
||||
|
||||
${PURPLE}10.${NC} How to fix error when export database in phpMyAdmin?
|
||||
${PURPLE}10.${NC} How to add additional headers for my website ?
|
||||
|
||||
You may see error message:
|
||||
Please check this post ${GREEN}https://openlitespeed.org/kb/how-to-set-up-custom-headers/${NC}
|
||||
|
||||
The dynamic response body size is over the limit, the response will be truncated by the web server.
|
||||
The limit is set in the key 'maxDynRespSize' located in the tuning section of the server configuration,
|
||||
and labeled 'max dynamic response body size
|
||||
${BLUE}------------------------------------------------------------${NC}
|
||||
|
||||
Solution: add following code into ${RED}/etc/my.cnf${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}
|
||||
|
||||
if ${GREEN}[mysql]${NC} already exists, then add the second line into that section , and restart mysql by command
|
||||
and then restart MariaDB by command ${RED}systemctl restart mariadb${NC}
|
||||
|
||||
${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}
|
||||
"
|
||||
Reference in New Issue
Block a user