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:
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user