tbrehm
2008-09-21 cea56e30c3a3109f829ccaa3ccc84b4b009ea6b3
install/lib/installer_base.lib.php
@@ -177,7 +177,7 @@
      $this->db->dbName = $cf['database'];
      
      $server_ini_content = rf("tpl/server.ini.master");
      $server_ini_content = addslashes($server_ini_content);
      $server_ini_content = mysql_real_escape_string($server_ini_content);
      
      $sql = "INSERT INTO `server` (`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_name`, `mail_server`, `web_server`, `dns_server`, `file_server`, `db_server`, `vserver_server`, `config`, `updated`, `active`) VALUES (1, 1, 'riud', 'riud', 'r', '".$conf['hostname']."', 1, 1, 1, 1, 1, 1, '$server_ini_content', 0, 1);";
      $this->db->query($sql);
@@ -610,6 +610,11 @@
      //* Create the logging directory for the vhost logfiles
      exec('mkdir -p /var/log/ispconfig/httpd');
      
      if(is_file('/etc/suphp/suphp.conf')) {
         replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin/php-cgi','x-httpd-suphp=php:/usr/bin/php-cgi',0);
         replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0);
      }
   }
   
   public function configure_firewall()