Skip to content

Commit 54c0c31

Browse files
committed
- Added php mode questions to expert setup mode in install.php file.
1 parent 9b9ba42 commit 54c0c31

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

install/install.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,23 @@
288288
//** Configure ISPConfig :-)
289289
if(strtolower($inst->simple_query('Install ISPConfig',array('y','n'),'y')) == 'y') {
290290
swriteln('Installing ISPConfig');
291+
292+
//** We want to check if the server is a module or cgi based php enabled server
293+
//** TODO: Don't always ask for this somehow ?
294+
$fast_cgi = $inst->simple_query('CGI PHP Enabled Server?', array('yes','no'),'no');
295+
296+
if($fast_cgi == 'yes') {
297+
$alias = $inst->free_query('Script Alias', '/php/');
298+
$path = $inst->free_query('Script Alias Path', '/path/to/cgi/bin');
299+
$inst->conf['apache']['vhost_cgi_alias'] = sprintf('ScriptAlias %s %s', $alias, $path);
300+
} else {
301+
$inst->conf['apache']['vhost_cgi_alias'] = "";
302+
}
303+
304+
//** Customise the port ISPConfig runs on
305+
$inst->conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080');
306+
307+
291308
$inst->install_ispconfig();
292309

293310
//* Configure ISPConfig

0 commit comments

Comments
 (0)