Final fix for wo info
This commit is contained in:
@@ -79,20 +79,24 @@ class WOInfoController(CementBaseController):
|
|||||||
max_execution_time = config['PHP']['max_execution_time']
|
max_execution_time = config['PHP']['max_execution_time']
|
||||||
|
|
||||||
config.read('/etc/{0}/fpm/pool.d/www.conf'.format("php/7.2"))
|
config.read('/etc/{0}/fpm/pool.d/www.conf'.format("php/7.2"))
|
||||||
www_listen = config['www-php72']['listen']
|
if config.has_section('www'):
|
||||||
www_ping_path = config['www-php72']['ping.path']
|
wconfig = config['www']
|
||||||
www_pm_status_path = config['www-php72']['pm.status_path']
|
elif config.has_section['www-php72']:
|
||||||
www_pm = config['www-php72']['pm']
|
wconfig = config['www-php72']
|
||||||
www_pm_max_requests = config['www-php72']['pm.max_requests']
|
www_listen = wconfig['listen']
|
||||||
www_pm_max_children = config['www-php72']['pm.max_children']
|
www_ping_path = wconfig['ping.path']
|
||||||
www_pm_start_servers = config['www-php72']['pm.start_servers']
|
www_pm_status_path = wconfig['pm.status_path']
|
||||||
www_pm_min_spare_servers = config['www-php72']['pm.min_spare_servers']
|
www_pm = wconfig['pm']
|
||||||
www_pm_max_spare_servers = config['www-php72']['pm.max_spare_servers']
|
www_pm_max_requests = wconfig['pm.max_requests']
|
||||||
www_request_terminate_time = (config['www-php72']
|
www_pm_max_children = wconfig['pm.max_children']
|
||||||
|
www_pm_start_servers = wconfig['pm.start_servers']
|
||||||
|
www_pm_min_spare_servers = wconfig['pm.min_spare_servers']
|
||||||
|
www_pm_max_spare_servers = wconfig['pm.max_spare_servers']
|
||||||
|
www_request_terminate_time = (wconfig
|
||||||
['request_terminate_timeout'])
|
['request_terminate_timeout'])
|
||||||
try:
|
try:
|
||||||
www_xdebug = (
|
www_xdebug = (
|
||||||
config['www-php72']['php_admin_flag[xdebug.profiler_enable'
|
wconfig['php_admin_flag[xdebug.profiler_enable'
|
||||||
'_trigger]'])
|
'_trigger]'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Log.debug(self, "{0}".format(e))
|
Log.debug(self, "{0}".format(e))
|
||||||
@@ -157,19 +161,23 @@ class WOInfoController(CementBaseController):
|
|||||||
max_execution_time = config['PHP']['max_execution_time']
|
max_execution_time = config['PHP']['max_execution_time']
|
||||||
|
|
||||||
config.read('/etc/php/7.3/fpm/pool.d/www.conf')
|
config.read('/etc/php/7.3/fpm/pool.d/www.conf')
|
||||||
www_listen = config['www-php73']['listen']
|
if config.has_section('www'):
|
||||||
www_ping_path = config['www-php73']['ping.path']
|
wconfig = config['www']
|
||||||
www_pm_status_path = config['www-php73']['pm.status_path']
|
elif config.has_section['www-php73']:
|
||||||
www_pm = config['www-php73']['pm']
|
wconfig = config['www-php73']
|
||||||
www_pm_max_requests = config['www-php73']['pm.max_requests']
|
www_listen = wconfig['listen']
|
||||||
www_pm_max_children = config['www-php73']['pm.max_children']
|
www_ping_path = wconfig['ping.path']
|
||||||
www_pm_start_servers = config['www-php73']['pm.start_servers']
|
www_pm_status_path = wconfig['pm.status_path']
|
||||||
www_pm_min_spare_servers = config['www-php73']['pm.min_spare_servers']
|
www_pm = wconfig['pm']
|
||||||
www_pm_max_spare_servers = config['www-php73']['pm.max_spare_servers']
|
www_pm_max_requests = wconfig['pm.max_requests']
|
||||||
www_request_terminate_time = (config['www-php73']
|
www_pm_max_children = wconfig['pm.max_children']
|
||||||
|
www_pm_start_servers = wconfig['pm.start_servers']
|
||||||
|
www_pm_min_spare_servers = wconfig['pm.min_spare_servers']
|
||||||
|
www_pm_max_spare_servers = wconfig['pm.max_spare_servers']
|
||||||
|
www_request_terminate_time = (wconfig
|
||||||
['request_terminate_timeout'])
|
['request_terminate_timeout'])
|
||||||
try:
|
try:
|
||||||
www_xdebug = (config['www-php73']
|
www_xdebug = (wconfig
|
||||||
['php_admin_flag[xdebug.profiler_enable'
|
['php_admin_flag[xdebug.profiler_enable'
|
||||||
'_trigger]'])
|
'_trigger]'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user