From 8b5ccd302bd1497de721a25e4ce086bebf95173f Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 08 Jun 2008 15:32:42 -0400 Subject: [PATCH] Fixed a problem with the logout when the php session has ended. --- install/install.php | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/install/install.php b/install/install.php index a8b772a..3138ee5 100644 --- a/install/install.php +++ b/install/install.php @@ -134,6 +134,10 @@ //* Configure postfix $inst->configure_postfix(); + + //* Configure postfix + swriteln('Configuring Jailkit'); + $inst->configure_jailkit(); //* Configure saslauthd swriteln('Configuring SASL'); @@ -174,6 +178,10 @@ //* Configure ISPConfig swriteln('Installing ISPConfig'); + + //** Customise the port ISPConfig runs on + $inst->conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080'); + $inst->install_ispconfig(); //* Configure ISPConfig @@ -271,6 +279,23 @@ //** 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 -- Gitblit v1.9.1