Skip to content

Commit

Permalink
bug fix: keep default php-fpm config
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 14, 2024
1 parent 282a583 commit 89e09de
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions ApachController/ApacheController.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,43 +245,43 @@ def phpVersions():
if ProcessUtilities.executioner(command, None, True) == 0:
return "Failed to install Apache and PHP-FPM."

try:
wwwConfPath = ApacheVhost.php54Path + "/www.conf"

if os.path.exists(wwwConfPath):
os.remove(wwwConfPath)

wwwConfPath = ApacheVhost.php55Path + "/www.conf"

if os.path.exists(wwwConfPath):
os.remove(wwwConfPath)

wwwConfPath = ApacheVhost.php56Path + "/www.conf"

if os.path.exists(wwwConfPath):
os.remove(wwwConfPath)

wwwConfPath = ApacheVhost.php70Path + "/www.conf"

if os.path.exists(wwwConfPath):
os.remove(wwwConfPath)

wwwConfPath = ApacheVhost.php71Path + "/www.conf"

if os.path.exists(wwwConfPath):
os.remove(wwwConfPath)

wwwConfPath = ApacheVhost.php72Path + "/www.conf"

if os.path.exists(wwwConfPath):
os.remove(wwwConfPath)

wwwConfPath = ApacheVhost.php73Path + "/www.conf"

if os.path.exists(wwwConfPath):
os.remove(wwwConfPath)
except:
pass
# try:
# wwwConfPath = ApacheVhost.php54Path + "/www.conf"
#
# if os.path.exists(wwwConfPath):
# os.remove(wwwConfPath)
#
# wwwConfPath = ApacheVhost.php55Path + "/www.conf"
#
# if os.path.exists(wwwConfPath):
# os.remove(wwwConfPath)
#
# wwwConfPath = ApacheVhost.php56Path + "/www.conf"
#
# if os.path.exists(wwwConfPath):
# os.remove(wwwConfPath)
#
# wwwConfPath = ApacheVhost.php70Path + "/www.conf"
#
# if os.path.exists(wwwConfPath):
# os.remove(wwwConfPath)
#
# wwwConfPath = ApacheVhost.php71Path + "/www.conf"
#
# if os.path.exists(wwwConfPath):
# os.remove(wwwConfPath)
#
# wwwConfPath = ApacheVhost.php72Path + "/www.conf"
#
# if os.path.exists(wwwConfPath):
# os.remove(wwwConfPath)
#
# wwwConfPath = ApacheVhost.php73Path + "/www.conf"
#
# if os.path.exists(wwwConfPath):
# os.remove(wwwConfPath)
# except:
# pass

return 1

Expand Down

0 comments on commit 89e09de

Please sign in to comment.