From dae3e416a232c3e38afb619e81b2828f06585c17 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 3 Dec 2010 08:58:44 +0000 Subject: [PATCH] - include nginx_phpfpm cron in cron_tasks.php - show parts of fcgid also when lighttpd is used --- actions/admin/settings/135.fcgid.php | 7 ++++++- scripts/jobs/cron_tasks.php | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/actions/admin/settings/135.fcgid.php b/actions/admin/settings/135.fcgid.php index 46d0fd3b..ed828480 100644 --- a/actions/admin/settings/135.fcgid.php +++ b/actions/admin/settings/135.fcgid.php @@ -19,7 +19,7 @@ return array( 'groups' => array( 'fcgid' => array( 'title' => $lng['admin']['fcgid_settings'], - 'websrv_avail' => array('apache2'), + 'websrv_avail' => array('apache2', 'lighttpd'), 'fields' => array( 'system_mod_fcgid_enabled' => array( 'label' => $lng['serversettings']['mod_fcgid'], @@ -68,6 +68,7 @@ return array( 'option_options' => array(0 => 'ScriptAlias', 1=> 'FCGIWrapper'), 'default' => 1, 'save_method' => 'storeSettingField', + 'websrv_avail' => array('apache2') ), 'system_mod_fcgid_starter' => array( 'label' => $lng['serversettings']['mod_fcgid']['starter'], @@ -102,6 +103,7 @@ return array( 'type' => 'bool', 'default' => false, 'save_method' => 'storeSettingField', + 'websrv_avail' => array('apache2') ), 'system_mod_fcgid_httpuser' => array( 'label' => $lng['admin']['mod_fcgid_user'], @@ -110,6 +112,7 @@ return array( 'type' => 'string', 'default' => 'froxlorlocal', 'save_method' => 'storeSettingField', + 'websrv_avail' => array('apache2') ), 'system_mod_fcgid_httpgroup' => array( 'label' => $lng['admin']['mod_fcgid_group'], @@ -118,6 +121,7 @@ return array( 'type' => 'string', 'default' => 'froxlorlocal', 'save_method' => 'storeSettingField', + 'websrv_avail' => array('apache2') ), 'system_mod_fcgid_defaultini_ownvhost' => array( 'label' => $lng['serversettings']['mod_fcgid']['defaultini_ownvhost'], @@ -128,6 +132,7 @@ return array( 'option_mode' => 'one', 'option_options_method' => 'getPhpConfigs', 'save_method' => 'storeSettingField', + 'websrv_avail' => array('apache2') ), ) ) diff --git a/scripts/jobs/cron_tasks.php b/scripts/jobs/cron_tasks.php index f5320753..80ed842c 100644 --- a/scripts/jobs/cron_tasks.php +++ b/scripts/jobs/cron_tasks.php @@ -26,6 +26,7 @@ require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.15.apache require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.20.lighttpd.php')); require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.25.lighttpd_fcgid.php')); require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.30.nginx.php')); +require_once(makeCorrectFile(dirname(__FILE__) . '/cron_tasks.inc.http.35.nginx_phpfpm.php')); /** * LOOK INTO TASKS TABLE TO SEE IF THERE ARE ANY UNDONE JOBS