Skip to content

Commit a768b9f

Browse files
committed
- Fixes in the installer.
1 parent 7bd4b4e commit a768b9f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

install/install.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
}
217217

218218
//* Insert the Server record into the database
219+
swriteln('Adding ISPConfig server record to database.');
219220
$inst->add_database_server_record();
220221

221222

@@ -281,7 +282,8 @@
281282
swriteln('Installing ISPConfig');
282283

283284
//** We want to check if the server is a module or cgi based php enabled server
284-
//** TODO: Don't always ask for this somehow ?
285+
//** TODO: Don't always ask for this somehow ?
286+
/*
285287
$fast_cgi = $inst->simple_query('CGI PHP Enabled Server?', array('yes','no'),'no');
286288
287289
if($fast_cgi == 'yes') {
@@ -291,6 +293,7 @@
291293
} else {
292294
$inst->conf['apache']['vhost_cgi_alias'] = "";
293295
}
296+
*/
294297

295298
//** Customise the port ISPConfig runs on
296299
$inst->conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080');

install/lib/installer_base.lib.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,16 @@ public function add_database_server_record() {
159159
//* Reload database privelages
160160
$this->db->query('FLUSH PRIVILEGES;');
161161

162+
//* Set the database name in the DB library
163+
$this->db->dbName = $cf['database'];
162164

163165
$server_ini_content = rf("tpl/server.ini.master");
164166
$server_ini_content = addslashes($server_ini_content);
165167

166168
$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);";
167169
$this->db->query($sql);
168-
$this->conf['server_id'] = $this->db->insertID();
170+
$conf['server_id'] = $this->db->insertID();
171+
$this->conf['server_id'] = $conf['server_id'];
169172
}
170173

171174

0 commit comments

Comments
 (0)