From 9b9ba428a25ff39cca0f92c97ffa24659392a2f9 Mon Sep 17 00:00:00 2001
From: daniel <daniel@ispconfig3>
Date: Wed, 04 Jun 2008 15:44:07 -0400
Subject: [PATCH] 

---
 install/update.php |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/install/update.php b/install/update.php
index c05c00b..3c8c936 100644
--- a/install/update.php
+++ b/install/update.php
@@ -174,6 +174,24 @@
 
 //** Configure ISPConfig
 swriteln('Updating 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 Crontab

--
Gitblit v1.9.1