diff --git a/cyberpanel.sh b/cyberpanel.sh index f34aa98f1..f6e389c7f 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -168,7 +168,7 @@ sed -i 's|cyberpanel.sh|'$DOWNLOAD_SERVER'|g' install.py sed -i 's|mirror.cyberpanel.net|'$DOWNLOAD_SERVER'|g' install.py sed -i 's|git clone https://github.com/usmannasir/cyberpanel|echo downloaded|g' install.py #change to CDN first, regardless country -sed -i 's|http://|https://|g' install.py +#sed -i 's|http://|https://|g' install.py if [[ $PROVIDER == "Alibaba Cloud" ]] ; then if ! grep -q "100.100.2.136" /etc/resolv.conf ; then @@ -1099,6 +1099,9 @@ if [[ $debug == "0" ]] ; then fi if [[ $debug == "1" ]] ; then + wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt + /usr/local/CyberPanel/bin/pip3 install --ignore-installed -r requirements.txt + rm -f requirements.txt /usr/local/CyberPanel/bin/python install.py $SERVER_IP $SERIAL_NO $LICENSE_KEY --postfix $POSTFIX_VARIABLE --powerdns $POWERDNS_VARIABLE --ftp $PUREFTPD_VARIABLE if grep "CyberPanel installation successfully completed" /var/log/installLogs.txt > /dev/null; then diff --git a/faq.sh b/faq.sh index b068f6fbb..dd58a804d 100644 --- a/faq.sh +++ b/faq.sh @@ -80,4 +80,23 @@ ${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 fix error when export database in phpMyAdmin? + +You may see error message: + +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 + +Solution: 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 + +${RED}systemctl restart mariadb${NC} " diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 8a5c6ad32..4ed1301a2 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -356,6 +356,17 @@ class InstallCyberPanel: ####### Install pureftpd to system startup + ### Deal with some Centos 7 OpenVZ issues: + if self.distro == centos: + if subprocess.check_output('systemd-detect-virt').decode("utf-8").find("openvz") > -1: + varTmp = "[Service]\nPIDFile=/run/pure-ftpd.pid" + writeToFile = open("/etc/systemd/system/pure-ftpd.service.d/override.conf", "w") + writeToFile.writelines(varTmp) + writeToFile.close() + + command = "systemctl daemon-reload" + install.preFlightsCheck.call(command, self.distro. command, command, 1, 1, os.EX_OSERR); + command = "systemctl enable " + install.preFlightsChecks.pureFTPDServiceName(self.distro) install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) @@ -366,7 +377,7 @@ class InstallCyberPanel: command = 'useradd -u 2001 -s /bin/false -d /bin/null -c "pureftpd user" -g ftpgroup ftpuser' install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) - + def startPureFTPD(self): ############## Start pureftpd ###################### if self.distro == ubuntu: @@ -654,4 +665,4 @@ def Main(cwd, mysql, distro, ent, serial = None, port = "8090", ftp = None, dns if dns == 'ON': installer.installPowerDNS() installer.installPowerDNSConfigurations(InstallCyberPanel.mysqlPassword, mysql) - installer.startPowerDNS() \ No newline at end of file + installer.startPowerDNS()