tbrehm
2008-06-29 a768b9f03ef4b58fcd5c75c237d3b6419e2608d8
- Fixes in the installer.
2 files modified
10 ■■■■ changed files
install/install.php 5 ●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php 5 ●●●● patch | view | raw | blame | history
install/install.php
@@ -216,6 +216,7 @@
    }
        
    //* Insert the Server record into the database
    swriteln('Adding ISPConfig server record to database.');
    $inst->add_database_server_record();
    
@@ -281,7 +282,8 @@
        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,6 +293,7 @@
        } else {
             $inst->conf['apache']['vhost_cgi_alias'] = "";
        }
        */
        //** Customise the port ISPConfig runs on
        $inst->conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080');
install/lib/installer_base.lib.php
@@ -159,13 +159,16 @@
        //* Reload database privelages
        $this->db->query('FLUSH PRIVILEGES;');
        
        //* Set the database name in the DB library
        $this->db->dbName = $cf['database'];
        
        $server_ini_content = rf("tpl/server.ini.master");
        $server_ini_content = addslashes($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', 'Server', 1, 1, 1, 1, 1, 1, '$server_ini_content', 0, 1);";
        $this->db->query($sql);
        $this->conf['server_id'] = $this->db->insertID();
        $conf['server_id'] = $this->db->insertID();
        $this->conf['server_id'] = $conf['server_id'];
    }