@@ -58,7 +58,7 @@ def setupAutoDiscover(mailDomain, tempStatusPath, virtualHostName, admin):
5858 childDomain = 'mail.%s' % (virtualHostName )
5959 childPath = '/home/%s/%s' % (virtualHostName , childDomain )
6060
61- result = virtualHostUtilities .createDomain (virtualHostName , childDomain , 'PHP 7.2 ' , childPath , 1 , 0 , 0 ,
61+ result = virtualHostUtilities .createDomain (virtualHostName , childDomain , 'PHP 7.3 ' , childPath , 1 , 0 , 0 ,
6262 admin .userName , 0 , "/home/cyberpanel/" + str (randint (1000 , 9999 )))
6363
6464 if result [0 ] == 0 :
@@ -120,7 +120,7 @@ def setupAutoDiscover(mailDomain, tempStatusPath, virtualHostName, admin):
120120 @staticmethod
121121 def createVirtualHost (virtualHostName , administratorEmail , phpVersion , virtualHostUser , ssl ,
122122 dkimCheck , openBasedir , websiteOwner , packageName , apache ,
123- tempStatusPath = '/home/cyberpanel/fakePath' , mailDomain = None , LimitsCheck = 1 ):
123+ tempStatusPath = '/home/cyberpanel/fakePath' , mailDomain = None , LimitsCheck = 1 ):
124124 try :
125125
126126 logging .CyberCPLogFileWriter .statusWriter (tempStatusPath , 'Running some checks..,0' )
@@ -505,7 +505,6 @@ def issueSSLForHostName(virtualHost, path):
505505 print ("1,None" )
506506 return 1 , 'None'
507507
508-
509508 except BaseException as msg :
510509 logging .CyberCPLogFileWriter .writeToFile (str (msg ) + " [issueSSLForHostName]" )
511510 print ("0," + str (msg ))
@@ -929,7 +928,7 @@ def saveSSL(virtualHost, keyPath, certPath):
929928
930929 @staticmethod
931930 def createDomain (masterDomain , virtualHostName , phpVersion , path , ssl , dkimCheck , openBasedir , owner , apache ,
932- tempStatusPath = '/home/cyberpanel/fakePath' , LimitsCheck = 1 ):
931+ tempStatusPath = '/home/cyberpanel/fakePath' , LimitsCheck = 1 ):
933932 try :
934933
935934 logging .CyberCPLogFileWriter .statusWriter (tempStatusPath , 'Running some checks..,0' )
@@ -957,7 +956,6 @@ def createDomain(masterDomain, virtualHostName, phpVersion, path, ssl, dkimCheck
957956 'This domain already exists as child domain. [404]' )
958957 return 0 , "This domain already exists as child domain."
959958
960-
961959 if ChildDomains .objects .filter (domain = virtualHostName .lstrip ('www.' )).count () > 0 :
962960 logging .CyberCPLogFileWriter .statusWriter (tempStatusPath ,
963961 'This domain already exists as child domain. [404]' )
0 commit comments