From a1340a3e8add2e7a7f4000bb2df6b897b726430e Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 23 Sep 2024 21:28:05 +0500 Subject: [PATCH] add php 8.3 to phpfpm --- ApachController/ApacheVhosts.py | 11 +++++++++++ managePHP/phpManager.py | 1 + 2 files changed, 12 insertions(+) diff --git a/ApachController/ApacheVhosts.py b/ApachController/ApacheVhosts.py index a2af91864..60c01fdb5 100755 --- a/ApachController/ApacheVhosts.py +++ b/ApachController/ApacheVhosts.py @@ -52,6 +52,8 @@ class ApacheVhost: php80Path = '/etc/php/8.0/fpm/pool.d/' php81Path = '/etc/php/8.1/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' @@ -89,6 +91,10 @@ def DecidePHPPath(php, virtualHostName): finalConfPath = ApacheVhost.php81Path + virtualHostName elif php == '82': finalConfPath = ApacheVhost.php82Path + virtualHostName + elif php == '83': + finalConfPath = ApacheVhost.php83Path + virtualHostName + elif php == '84': + finalConfPath = ApacheVhost.php84Path + virtualHostName return finalConfPath + '.conf' @@ -130,6 +136,11 @@ def whichPHPExists(virtualHostName): if os.path.exists(ApacheVhost.php82Path + virtualHostName): return ApacheVhost.php82Path + virtualHostName + if os.path.exists(ApacheVhost.php83Path + virtualHostName): + return ApacheVhost.php83Path + virtualHostName + + + @staticmethod def GenerateSelfSignedSSL(virtualHostName): if os.path.exists(ApacheVhost.sslBasePath): diff --git a/managePHP/phpManager.py b/managePHP/phpManager.py index be91ea612..c81bef0be 100755 --- a/managePHP/phpManager.py +++ b/managePHP/phpManager.py @@ -72,6 +72,7 @@ def FindPHPFPMPath(phpVersion): elif phpVersion == "PHP 7.3": return "/etc/opt/remi/php73/php.ini" + @staticmethod def getCurrentPHPConfig(phpVersion): allow_url_fopen = "0"