From 54c0c31e5096a2f179210bfad38d30b02fc450eb Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Wed, 4 Jun 2008 19:59:28 +0000 Subject: [PATCH] - Added php mode questions to expert setup mode in install.php file. --- install/install.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install/install.php b/install/install.php index 65a7f22e9e..8c5ebf9643 100644 --- a/install/install.php +++ b/install/install.php @@ -288,6 +288,23 @@ if($install_mode == 'Standard') { //** Configure ISPConfig :-) if(strtolower($inst->simple_query('Install ISPConfig',array('y','n'),'y')) == 'y') { swriteln('Installing ISPConfig'); + + //** We want to check if the server is a module or cgi based php enabled server + //** TODO: Don't always ask for this somehow ? + $fast_cgi = $inst->simple_query('CGI PHP Enabled Server?', array('yes','no'),'no'); + + if($fast_cgi == 'yes') { + $alias = $inst->free_query('Script Alias', '/php/'); + $path = $inst->free_query('Script Alias Path', '/path/to/cgi/bin'); + $inst->conf['apache']['vhost_cgi_alias'] = sprintf('ScriptAlias %s %s', $alias, $path); + } else { + $inst->conf['apache']['vhost_cgi_alias'] = ""; + } + + //** Customise the port ISPConfig runs on + $inst->conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080'); + + $inst->install_ispconfig(); //* Configure ISPConfig -- GitLab