diff --git a/install/install.py b/install/install.py index 1ae87ef4e..580ff417a 100755 --- a/install/install.py +++ b/install/install.py @@ -692,7 +692,7 @@ class preFlightsChecks: if self.distro == centos: command = 'yum install --enablerepo=CyberPanel -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre' elif self.distro == cent8: - command = 'dnf --enablerepo=CyberPanel install postfix postfix-mysql-y ' + command = 'dnf --enablerepo=CyberPanel install postfix postfix-mysql -y ' else: command = 'apt-get -y debconf-utils' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index d0f91994b..a664f6631 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -165,16 +165,14 @@ class InstallCyberPanel: if res != 0: InstallCyberPanel.stdOut("Failed to install PHP on Ubuntu.", 1, 1) - elif self.distro == cent8 or self.distro == centos: + elif self.distro == centos: command = 'yum -y groupinstall lsphp-all' install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) - - InstallCyberPanel.stdOut("LiteSpeed PHPs successfully installed!", 1) ## only php 71 - if self.distro == centos or self.distro == cent8: + if self.distro == centos: command = 'yum install lsphp71 lsphp71-json lsphp71-xmlrpc lsphp71-xml lsphp71-soap lsphp71-snmp ' \ 'lsphp71-recode lsphp71-pspell lsphp71-process lsphp71-pgsql lsphp71-pear lsphp71-pdo lsphp71-opcache ' \ @@ -207,6 +205,10 @@ class InstallCyberPanel: install.preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) + if self.distro == cent8: + command = 'dnf install lsphp71* lsphp72* lsphp73* lsphp74* --exclude lsphp73-pecl-zip -y' + subprocess.call(command, shell=True) + def installMySQL(self, mysql): ############## Install mariadb ###################### @@ -332,7 +334,7 @@ class InstallCyberPanel: elif self.distro == centos: command = "yum install -y pure-ftpd" elif self.distro == cent8: - command = 'dnf --enablerepe=CyberPanel install pure-ftpd -y' + command = 'dnf --enablerepo=CyberPanel install pure-ftpd -y' install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) @@ -482,12 +484,12 @@ class InstallCyberPanel: # ". This may need to be fixed manually as 'echo \"nameserver 8.8.8.8\"> " # "/etc/resolv.conf'", 1, 1, os.EX_OSERR) - if self.distro == cent8: - command = 'dnf config-manager --set-enabled PowerTools' - install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) - - command = 'curl -o /etc/yum.repos.d/powerdns-auth-master.repo https://repo.powerdns.com/repo-files/centos-auth-master.repo' - install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) + # if self.distro == cent8: + # command = 'dnf config-manager --set-enabled PowerTools' + # install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) + # + # command = 'curl -o /etc/yum.repos.d/powerdns-auth-master.repo https://repo.powerdns.com/repo-files/centos-auth-master.repo' + # install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) if self.distro == ubuntu: command = "DEBIAN_FRONTEND=noninteractive apt-get -y install pdns-server pdns-backend-mysql"