mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
update static file cache
This commit is contained in:
@@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
<!-- HELPERS -->
|
<!-- HELPERS -->
|
||||||
|
|
||||||
{% with version="2.3.4.3" %}
|
{% with version="2.3.4.5" %}
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'baseTemplate/assets/finalBase/finalBase.css' %}">
|
<link rel="stylesheet" type="text/css" href="{% static 'baseTemplate/assets/finalBase/finalBase.css' %}">
|
||||||
|
|
||||||
|
|||||||
@@ -548,6 +548,32 @@ $parameters = array(
|
|||||||
statusFile.writelines('Setting up paths,0')
|
statusFile.writelines('Setting up paths,0')
|
||||||
statusFile.close()
|
statusFile.close()
|
||||||
|
|
||||||
|
#### Before installing wordpress change php to 8.0
|
||||||
|
|
||||||
|
from plogical.virtualHostUtilities import virtualHostUtilities
|
||||||
|
|
||||||
|
completePathToConfigFile = f'/usr/local/lsws/conf/vhosts/{domainName}/vhost.conf'
|
||||||
|
|
||||||
|
execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
|
||||||
|
execPath = execPath + " changePHP --phpVersion 'PHP 8.0' --path " + completePathToConfigFile
|
||||||
|
ProcessUtilities.executioner(execPath)
|
||||||
|
|
||||||
|
### lets first find php path
|
||||||
|
|
||||||
|
from plogical.phpUtilities import phpUtilities
|
||||||
|
|
||||||
|
vhFile = f'/usr/local/lsws/conf/vhosts/{domainName}/vhost.conf'
|
||||||
|
|
||||||
|
phpPath = phpUtilities.GetPHPVersionFromFile(vhFile)
|
||||||
|
|
||||||
|
### basically for now php 8.0 is being checked
|
||||||
|
|
||||||
|
if not os.path.exists(phpPath):
|
||||||
|
statusFile = open(tempStatusPath, 'w')
|
||||||
|
statusFile.writelines('PHP 8.0 missing installing now..,20')
|
||||||
|
statusFile.close()
|
||||||
|
phpUtilities.InstallSaidPHP('80')
|
||||||
|
|
||||||
finalPath = ''
|
finalPath = ''
|
||||||
self.permPath = ''
|
self.permPath = ''
|
||||||
|
|
||||||
@@ -604,8 +630,8 @@ $parameters = array(
|
|||||||
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website)
|
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website)
|
||||||
self.permPath = '/home/%s/public_html' % (website.domain)
|
self.permPath = '/home/%s/public_html' % (website.domain)
|
||||||
|
|
||||||
php = PHPManager.getPHPString(website.phpSelection)
|
#php = PHPManager.getPHPString(website.phpSelection)
|
||||||
FinalPHPPath = '/usr/local/lsws/lsphp%s/bin/php' % (php)
|
FinalPHPPath = phpPath
|
||||||
|
|
||||||
## Security Check
|
## Security Check
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user