add php 8.3 to phpfpm

This commit is contained in:
usmannasir
2024-09-23 21:28:05 +05:00
parent 5f0bbf718a
commit a1340a3e8a
2 changed files with 12 additions and 0 deletions

View File

@@ -52,6 +52,8 @@ class ApacheVhost:
php80Path = '/etc/php/8.0/fpm/pool.d/' php80Path = '/etc/php/8.0/fpm/pool.d/'
php81Path = '/etc/php/8.1/fpm/pool.d/' php81Path = '/etc/php/8.1/fpm/pool.d/'
php82Path = '/etc/php/8.2/fpm/pool.d/' php82Path = '/etc/php/8.2/fpm/pool.d/'
php83Path = '/etc/php/8.3/fpm/pool.d/'
php84Path = '/etc/php/8.4/fpm/pool.d/'
serviceName = 'apache2' serviceName = 'apache2'
@@ -89,6 +91,10 @@ class ApacheVhost:
finalConfPath = ApacheVhost.php81Path + virtualHostName finalConfPath = ApacheVhost.php81Path + virtualHostName
elif php == '82': elif php == '82':
finalConfPath = ApacheVhost.php82Path + virtualHostName finalConfPath = ApacheVhost.php82Path + virtualHostName
elif php == '83':
finalConfPath = ApacheVhost.php83Path + virtualHostName
elif php == '84':
finalConfPath = ApacheVhost.php84Path + virtualHostName
return finalConfPath + '.conf' return finalConfPath + '.conf'
@@ -130,6 +136,11 @@ class ApacheVhost:
if os.path.exists(ApacheVhost.php82Path + virtualHostName): if os.path.exists(ApacheVhost.php82Path + virtualHostName):
return ApacheVhost.php82Path + virtualHostName return ApacheVhost.php82Path + virtualHostName
if os.path.exists(ApacheVhost.php83Path + virtualHostName):
return ApacheVhost.php83Path + virtualHostName
@staticmethod @staticmethod
def GenerateSelfSignedSSL(virtualHostName): def GenerateSelfSignedSSL(virtualHostName):
if os.path.exists(ApacheVhost.sslBasePath): if os.path.exists(ApacheVhost.sslBasePath):

View File

@@ -72,6 +72,7 @@ class PHPManager:
elif phpVersion == "PHP 7.3": elif phpVersion == "PHP 7.3":
return "/etc/opt/remi/php73/php.ini" return "/etc/opt/remi/php73/php.ini"
@staticmethod @staticmethod
def getCurrentPHPConfig(phpVersion): def getCurrentPHPConfig(phpVersion):
allow_url_fopen = "0" allow_url_fopen = "0"