update static file cache

This commit is contained in:
usman@cyberpersons.com
2023-08-10 19:39:18 +05:00
parent c5e7008f2f
commit 92c7e88a17
2 changed files with 29 additions and 3 deletions

View File

@@ -77,7 +77,7 @@
<!-- 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' %}">

View File

@@ -548,6 +548,32 @@ $parameters = array(
statusFile.writelines('Setting up paths,0')
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 = ''
self.permPath = ''
@@ -604,8 +630,8 @@ $parameters = array(
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website)
self.permPath = '/home/%s/public_html' % (website.domain)
php = PHPManager.getPHPString(website.phpSelection)
FinalPHPPath = '/usr/local/lsws/lsphp%s/bin/php' % (php)
#php = PHPManager.getPHPString(website.phpSelection)
FinalPHPPath = phpPath
## Security Check