File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments