1<?php
2
3/**
4 * This file is part of the Froxlor project.
5 * Copyright (c) 2010 the Froxlor Team (see authors).
6 *
7 * For the full copyright and license information, please view the COPYING
8 * file that was distributed with this source code. You can also view the
9 * COPYING file online at http://files.froxlor.org/misc/COPYING.txt
10 *
11 * @copyright  (c) the authors
12 * @author     Froxlor team <team@froxlor.org> (2010-)
13 * @license    GPLv2 http://files.froxlor.org/misc/COPYING.txt
14 * @package    Settings
15 *
16 */
17
18return array(
19	'groups' => array(
20		'fcgid' => array(
21			'title' => $lng['admin']['fcgid_settings'],
22			'websrv_avail' => array('apache2', 'lighttpd'),
23			'fields' => array(
24				'system_mod_fcgid_enabled' => array(
25					'label' => $lng['serversettings']['mod_fcgid'],
26					'settinggroup' => 'system',
27					'varname' => 'mod_fcgid',
28					'type' => 'bool',
29					'default' => false,
30					'save_method' => 'storeSettingField',
31					'plausibility_check_method' => 'checkFcgidPhpFpm',
32					'overview_option' => true
33					),
34				'system_mod_fcgid_configdir' => array(
35					'label' => $lng['serversettings']['mod_fcgid']['configdir'],
36					'settinggroup' => 'system',
37					'varname' => 'mod_fcgid_configdir',
38					'type' => 'string',
39					'string_type' => 'confdir',
40					'default' => '/var/www/php-fcgi-scripts/',
41					'plausibility_check_method' => 'checkPathConflicts',
42					'save_method' => 'storeSettingField',
43					),
44				'system_mod_fcgid_tmpdir' => array(
45					'label' => $lng['serversettings']['mod_fcgid']['tmpdir'],
46					'settinggroup' => 'system',
47					'varname' => 'mod_fcgid_tmpdir',
48					'type' => 'string',
49					'string_type' => 'dir',
50					'default' => '/var/customers/tmp/',
51					'save_method' => 'storeSettingField',
52					),
53				'system_mod_fcgid_peardir' => array(
54					'label' => $lng['serversettings']['mod_fcgid']['peardir'],
55					'settinggroup' => 'system',
56					'varname' => 'mod_fcgid_peardir',
57					'type' => 'string',
58					'string_type' => 'dir',
59					'string_delimiter' => ':',
60					'string_emptyallowed' => true,
61					'default' => '/usr/share/php/:/usr/share/php5/',
62					'save_method' => 'storeSettingField',
63					),
64				'system_mod_fcgid_wrapper' => array(
65					'label' => $lng['serversettings']['mod_fcgid']['wrapper'],
66					'settinggroup' => 'system',
67					'varname' => 'mod_fcgid_wrapper',
68					'type' => 'option',
69					'option_options' => array(0 => 'ScriptAlias', 1=> 'FcgidWrapper'),
70					'default' => 1,
71					'save_method' => 'storeSettingField',
72					'websrv_avail' => array('apache2')
73					),
74				'system_mod_fcgid_starter' => array(
75					'label' => $lng['serversettings']['mod_fcgid']['starter'],
76					'settinggroup' => 'system',
77					'varname' => 'mod_fcgid_starter',
78					'type' => 'int',
79					'default' => 0,
80					'save_method' => 'storeSettingField',
81					),
82				'system_mod_fcgid_maxrequests' => array(
83					'label' => $lng['serversettings']['mod_fcgid']['maxrequests'],
84					'settinggroup' => 'system',
85					'varname' => 'mod_fcgid_maxrequests',
86					'type' => 'int',
87					'default' => 250,
88					'save_method' => 'storeSettingField',
89					),
90				'system_mod_fcgid_defaultini' => array(
91					'label' => $lng['serversettings']['mod_fcgid']['defaultini'],
92					'settinggroup' => 'system',
93					'varname' => 'mod_fcgid_defaultini',
94					'type' => 'option',
95					'default' => '1',
96					'option_mode' => 'one',
97					'option_options_method' => 'getPhpConfigs',
98					'save_method' => 'storeSettingField',
99					),
100				'system_mod_fcgid_idle_timeout' => array(
101					'label' => $lng['serversettings']['mod_fcgid']['idle_timeout'],
102					'settinggroup' => 'system',
103					'varname' => 'mod_fcgid_idle_timeout',
104					'type' => 'int',
105					'default' => 30,
106					'save_method' => 'storeSettingField'
107					),
108				)
109			)
110		)
111	);
112
113?>
114