fix wo info
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
- Ubuntu 16.04 LTS (Xenial)
|
- Ubuntu 16.04 LTS (Xenial)
|
||||||
- Ubuntu 19.04 (Disco)
|
- Ubuntu 19.04 (Disco)
|
||||||
- Debian 9 (Stretch)
|
- Debian 9 (Stretch)
|
||||||
- Debian 10 (Buster) - Not ready for production
|
- Debian 10 (Buster)
|
||||||
- Raspbian 9 (Stretch)
|
- Raspbian 9 (Stretch)
|
||||||
- Raspbian 10 (Buster) - Testing
|
- Raspbian 10 (Buster) - Testing
|
||||||
|
|
||||||
|
|||||||
2
install
2
install
@@ -9,7 +9,7 @@
|
|||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
# wget -qO wo wops.cc && sudo bash wo
|
# wget -qO wo wops.cc && sudo bash wo
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
# Version 3.10.0 - 2019-10-28
|
# Version 3.10.0 - 2019-10-30
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
# CONTENTS
|
# CONTENTS
|
||||||
|
|||||||
@@ -79,22 +79,22 @@ 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"))
|
||||||
wo_sec = (config.sections())[0]
|
wo_sec = (config.sections()[0])
|
||||||
www_listen = config[[wo_sec]]['listen']
|
www_listen = config[wo_sec]['listen']
|
||||||
www_ping_path = config[[wo_sec]]['ping.path']
|
www_ping_path = config[wo_sec]['ping.path']
|
||||||
www_pm_status_path = config[[wo_sec]]['pm.status_path']
|
www_pm_status_path = config[wo_sec]['pm.status_path']
|
||||||
www_pm = config[[wo_sec]]['pm']
|
www_pm = config[wo_sec]['pm']
|
||||||
www_pm_max_requests = config[[wo_sec]]['pm.max_requests']
|
www_pm_max_requests = config[wo_sec]['pm.max_requests']
|
||||||
www_pm_max_children = config[[wo_sec]]['pm.max_children']
|
www_pm_max_children = config[wo_sec]['pm.max_children']
|
||||||
www_pm_start_servers = config[[wo_sec]]['pm.start_servers']
|
www_pm_start_servers = config[wo_sec]['pm.start_servers']
|
||||||
www_pm_min_spare_servers = config[[wo_sec]]['pm.min_spare_servers']
|
www_pm_min_spare_servers = config[wo_sec]['pm.min_spare_servers']
|
||||||
www_pm_max_spare_servers = config[[wo_sec]]['pm.max_spare_servers']
|
www_pm_max_spare_servers = config[wo_sec]['pm.max_spare_servers']
|
||||||
www_request_terminate_time = (config[[wo_sec]]
|
www_request_terminate_time = (config[wo_sec]
|
||||||
['request_terminate_timeout'])
|
['request_terminate_timeout'])
|
||||||
try:
|
try:
|
||||||
www_xdebug = (
|
www_xdebug = (
|
||||||
config[[wo_sec]]['php_admin_flag[xdebug.profiler_enable'
|
config[wo_sec]['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))
|
||||||
www_xdebug = 'off'
|
www_xdebug = 'off'
|
||||||
@@ -158,7 +158,7 @@ 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')
|
||||||
wo_sec = (config.sections())[0]
|
wo_sec = (config.sections()[0])
|
||||||
www_listen = config[wo_sec]['listen']
|
www_listen = config[wo_sec]['listen']
|
||||||
www_ping_path = config[wo_sec]['ping.path']
|
www_ping_path = config[wo_sec]['ping.path']
|
||||||
www_pm_status_path = config[wo_sec]['pm.status_path']
|
www_pm_status_path = config[wo_sec]['pm.status_path']
|
||||||
|
|||||||
Reference in New Issue
Block a user