tbrehm
2008-07-09 d155ef17e54e5e159b5aff3de86f55f9fc1155cd
install/install.php
@@ -183,6 +183,10 @@
   $inst->conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080');
   $inst->install_ispconfig();
   //* Configure DBServer
   swriteln('Configuring DBServer');
   $inst->configure_dbserver();
   //* Configure ISPConfig
   swriteln('Installing Crontab');
@@ -216,6 +220,8 @@
   }
      
   //* Insert the Server record into the database
   swriteln('Adding ISPConfig server record to database.');
   swriteln('');
   $inst->add_database_server_record();
   
@@ -277,11 +283,12 @@
   }
   
   //** Configure ISPConfig :-)
   if(strtolower($inst->simple_query('Install ISPConfig',array('y','n'),'y')) == 'y') {
   if(strtolower($inst->simple_query('Install ISPConfig Web-Interface',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 ?
      //** 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') {
@@ -291,19 +298,30 @@
      } 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
      swriteln('Installing Crontab');
      $inst->install_crontab();
      system($conf['init_scripts'].'/'.$conf['apache']['init_script'].' restart');
      $inst->install_ispconfig_interface = true;
   } else {
      $inst->install_ispconfig_interface = false;
   }
   
   $inst->install_ispconfig();
   //* Configure DBServer
   swriteln('Configuring DBServer');
   $inst->configure_dbserver();
   //* Configure ISPConfig
   swriteln('Installing Crontab');
   $inst->install_crontab();
   system($conf['init_scripts'].'/'.$conf['apache']['init_script'].' restart');
} //* << $install_mode / 'Standard' or Genius