mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
dynamically detect php version in ref to: https://community.cyberpanel.net/t/php-8-2-in-cyberpanel/49703
This commit is contained in:
@@ -10,6 +10,7 @@ try:
|
||||
from websiteFunctions.models import ChildDomains, Websites
|
||||
except:
|
||||
pass
|
||||
from plogical.acl import ACLManager
|
||||
|
||||
|
||||
class sslUtilities:
|
||||
@@ -320,7 +321,8 @@ context /.well-known/acme-challenge {
|
||||
except BaseException as msg:
|
||||
website = Websites.objects.get(domain=virtualHostName)
|
||||
externalApp = website.externalApp
|
||||
DocumentRoot = ' DocumentRoot /home/' + virtualHostName + '/public_html\n'
|
||||
docRoot = ACLManager.FindDocRootOfSite(None, virtualHostName)
|
||||
DocumentRoot = f' DocumentRoot {docRoot}\n'
|
||||
|
||||
data = open(completePathToConfigFile, 'r').readlines()
|
||||
phpHandler = ''
|
||||
|
||||
Reference in New Issue
Block a user