mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
bug fix: keep default php-fpm config
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user