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: if ProcessUtilities.executioner(command, None, True) == 0:
return "Failed to install Apache and PHP-FPM." return "Failed to install Apache and PHP-FPM."
try: # try:
wwwConfPath = ApacheVhost.php54Path + "/www.conf" # wwwConfPath = ApacheVhost.php54Path + "/www.conf"
#
if os.path.exists(wwwConfPath): # if os.path.exists(wwwConfPath):
os.remove(wwwConfPath) # os.remove(wwwConfPath)
#
wwwConfPath = ApacheVhost.php55Path + "/www.conf" # wwwConfPath = ApacheVhost.php55Path + "/www.conf"
#
if os.path.exists(wwwConfPath): # if os.path.exists(wwwConfPath):
os.remove(wwwConfPath) # os.remove(wwwConfPath)
#
wwwConfPath = ApacheVhost.php56Path + "/www.conf" # wwwConfPath = ApacheVhost.php56Path + "/www.conf"
#
if os.path.exists(wwwConfPath): # if os.path.exists(wwwConfPath):
os.remove(wwwConfPath) # os.remove(wwwConfPath)
#
wwwConfPath = ApacheVhost.php70Path + "/www.conf" # wwwConfPath = ApacheVhost.php70Path + "/www.conf"
#
if os.path.exists(wwwConfPath): # if os.path.exists(wwwConfPath):
os.remove(wwwConfPath) # os.remove(wwwConfPath)
#
wwwConfPath = ApacheVhost.php71Path + "/www.conf" # wwwConfPath = ApacheVhost.php71Path + "/www.conf"
#
if os.path.exists(wwwConfPath): # if os.path.exists(wwwConfPath):
os.remove(wwwConfPath) # os.remove(wwwConfPath)
#
wwwConfPath = ApacheVhost.php72Path + "/www.conf" # wwwConfPath = ApacheVhost.php72Path + "/www.conf"
#
if os.path.exists(wwwConfPath): # if os.path.exists(wwwConfPath):
os.remove(wwwConfPath) # os.remove(wwwConfPath)
#
wwwConfPath = ApacheVhost.php73Path + "/www.conf" # wwwConfPath = ApacheVhost.php73Path + "/www.conf"
#
if os.path.exists(wwwConfPath): # if os.path.exists(wwwConfPath):
os.remove(wwwConfPath) # os.remove(wwwConfPath)
except: # except:
pass # pass
return 1 return 1