From b59774acc1d3e987f6ba50ec9206a7da32aca166 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sat, 28 Dec 2019 17:11:17 +0500 Subject: [PATCH 1/2] update default php 7.3 --- plogical/upgrade.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 1e6b59494..758576f70 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -2142,12 +2142,26 @@ failovermethod=priority Upgrade.upgradeVersion() Upgrade.UpdateMaxSSLCons() + ## Update LSCPD PHP + + phpPath = '/usr/local/lscp/fcgi-bin/lsphp' + + try: + os.remove(phpPath) + except: + pass + + command = 'cp /usr/local/lsws/lsphp72/bin/lsphp %s' % (phpPath) + Upgrade.executioner(command, 0) + + try: command = "systemctl start lscpd" Upgrade.executioner(command, 'Start LSCPD', 0) except: pass + command = 'csf -uf' Upgrade.executioner(command, 'fix csf if there', 0) command = 'systemctl start cpssh' From fb7efa5191e4a1b849b1206fe67196586ee0c2a0 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sat, 28 Dec 2019 17:12:47 +0500 Subject: [PATCH 2/2] update default php 7.3 --- plogical/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 758576f70..6aade47a2 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -2151,7 +2151,7 @@ failovermethod=priority except: pass - command = 'cp /usr/local/lsws/lsphp72/bin/lsphp %s' % (phpPath) + command = 'cp /usr/local/lsws/lsphp73/bin/lsphp %s' % (phpPath) Upgrade.executioner(command, 0)