bug fix: keep default php-fpm config

This commit is contained in:
usmannasir
2024-01-14 17:48:25 +05:00
parent 282a5834bc
commit 89e09de97c

View File

@@ -245,43 +245,43 @@ LoadModule mpm_event_module modules/mod_mpm_event.so
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