- Fixes in the installer.
| | |
| | | } |
| | | |
| | | //* Insert the Server record into the database |
| | | swriteln('Adding ISPConfig server record to database.'); |
| | | $inst->add_database_server_record(); |
| | | |
| | | |
| | |
| | | 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') { |
| | |
| | | } else { |
| | | $inst->conf['apache']['vhost_cgi_alias'] = ""; |
| | | } |
| | | */ |
| | | |
| | | //** Customise the port ISPConfig runs on |
| | | $inst->conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080'); |
| | |
| | | //* 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']; |
| | | } |
| | | |
| | | |