diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 92f2e606c..75e5dc32f 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -671,7 +671,6 @@ class ApplicationInstaller(multi.Thread): vhFile = f'/usr/local/lsws/conf/vhosts/{domainName}/vhost.conf' try: - phpPath = phpUtilities.GetPHPVersionFromFile(vhFile) except: phpPath = '/usr/local/lsws/lsphp80/bin/php' @@ -742,6 +741,9 @@ class ApplicationInstaller(multi.Thread): dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website) self.permPath = '/home/%s/public_html' % (website.domain) + command = "rm -rf " + finalPath + "index.html" + ProcessUtilities.executioner(command, externalApp) + #php = PHPManager.getPHPString(website.phpSelection) FinalPHPPath = phpPath @@ -1059,6 +1061,11 @@ class ApplicationInstaller(multi.Thread): if self.dataLossCheck(finalPath, tempStatusPath, externalApp) == 0: raise BaseException('Directory is not empty.') + ### remove index.html + + command = "rm -rf " + finalPath + "index.html" + ProcessUtilities.executioner(command, externalApp) + ### lets first find php path from plogical.phpUtilities import phpUtilities