mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
remove php version
This commit is contained in:
@@ -972,7 +972,6 @@ if [[ $DEV == "ON" ]] ; then
|
|||||||
source /usr/local/CyberPanel/bin/activate
|
source /usr/local/CyberPanel/bin/activate
|
||||||
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
|
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
|
||||||
pip install --ignore-installed -r requirements.txt
|
pip install --ignore-installed -r requirements.txt
|
||||||
systemctl restart lscpd
|
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1425,7 +1425,7 @@ imap_folder_list_limit = 0
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
os.remove("/usr/local/lscp/fcgi-bin/lsphp")
|
os.remove("/usr/local/lscp/fcgi-bin/lsphp")
|
||||||
shutil.copy("/usr/local/lsws/lsphp70/bin/lsphp", "/usr/local/lscp/fcgi-bin/lsphp")
|
shutil.copy("/usr/local/lsws/lsphp71/bin/lsphp", "/usr/local/lscp/fcgi-bin/lsphp")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class PHPManager:
|
|||||||
distro = ProcessUtilities.decideDistro()
|
distro = ProcessUtilities.decideDistro()
|
||||||
if distro == ProcessUtilities.centos:
|
if distro == ProcessUtilities.centos:
|
||||||
if distro == ProcessUtilities.cent8:
|
if distro == ProcessUtilities.cent8:
|
||||||
return ['PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3']
|
return ['PHP 7.1', 'PHP 7.2', 'PHP 7.3']
|
||||||
return ['PHP 5.3', 'PHP 5.4', 'PHP 5.5', 'PHP 5.6', 'PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3']
|
return ['PHP 5.3', 'PHP 5.4', 'PHP 5.5', 'PHP 5.6', 'PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3']
|
||||||
else:
|
else:
|
||||||
return ['PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3']
|
return ['PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3']
|
||||||
|
|||||||
Reference in New Issue
Block a user