Skip to content

Commit

Permalink
update mautic to mautic 5 and php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 16, 2024
1 parent e270eda commit 6ee19f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions plogical/applicationInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ def installMautic(self):

if not os.path.exists(phpPath):
statusFile = open(tempStatusPath, 'w')
statusFile.writelines('PHP 8.0 missing installing now..,20')
statusFile.writelines('PHP 8.1 missing installing now..,20')
statusFile.close()
phpUtilities.InstallSaidPHP('80')
phpUtilities.InstallSaidPHP('81')


FNULL = open(os.devnull, 'w')
Expand Down Expand Up @@ -213,7 +213,7 @@ def installMautic(self):
statusFile.close()

### replace command with composer install
command = f'{phpPath} /usr/bin/composer create-project mautic/recommended-project:^4 {finalPath}'
command = f'{phpPath} /usr/bin/composer create-project mautic/recommended-project:^5 {finalPath}'
ProcessUtilities.outputExecutioner(command, externalApp, None)

statusFile = open(tempStatusPath, 'w')
Expand Down
4 changes: 2 additions & 2 deletions websiteFunctions/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -4347,12 +4347,12 @@ def mauticInstall(self, userID=None, data=None):
else:
return ACLManager.loadErrorJson('installStatus', 0)

#### Before installing mautic change php to 8.0
#### Before installing mautic change php to 8.1

completePathToConfigFile = f'/usr/local/lsws/conf/vhosts/{self.domain}/vhost.conf'

execPath = "/usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py"
execPath = execPath + " changePHP --phpVersion 'PHP 8.0' --path " + completePathToConfigFile
execPath = execPath + " changePHP --phpVersion 'PHP 8.1' --path " + completePathToConfigFile
ProcessUtilities.executioner(execPath)

mailUtilities.checkHome()
Expand Down

0 comments on commit 6ee19f0

Please sign in to comment.