Skip to content

Commit

Permalink
add php 8.3 to phpfpm
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Sep 23, 2024
1 parent 5f0bbf7 commit a1340a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ApachController/ApacheVhosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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'

Expand Down Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions managePHP/phpManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a1340a3

Please sign in to comment.