|
30 | 30 |
|
31 | 31 | /* |
32 | 32 | ISPConfig 3 installer. |
33 | | - |
| 33 | +
|
34 | 34 | ------------------------------------------------------------------------------------- |
35 | 35 | - Interactive install |
36 | 36 | ------------------------------------------------------------------------------------- |
37 | 37 | run: |
38 | | - |
| 38 | +
|
39 | 39 | php install.php |
40 | | - |
| 40 | +
|
41 | 41 | ------------------------------------------------------------------------------------- |
42 | 42 | - Noninteractive (autoinstall) mode |
43 | 43 | ------------------------------------------------------------------------------------- |
44 | | - |
| 44 | +
|
45 | 45 | The autoinstall mode can read the installer questions from a .ini style file or from |
46 | | - a php config file. Examples for both file types are in the docs folder. |
| 46 | + a php config file. Examples for both file types are in the docs folder. |
47 | 47 | See autoinstall.ini.sample and autoinstall.conf_sample.php. |
48 | | - |
| 48 | +
|
49 | 49 | run: |
50 | | - |
| 50 | +
|
51 | 51 | php install.php --autoinstall=autoinstall.ini |
52 | | - |
| 52 | +
|
53 | 53 | or |
54 | | - |
| 54 | +
|
55 | 55 | php install.php --autoinstall=autoinstall.conf.php |
56 | | - |
| 56 | +
|
57 | 57 | */ |
58 | 58 |
|
59 | 59 | error_reporting(E_ALL|E_STRICT); |
|
146 | 146 | //** Installer Interface |
147 | 147 | //**************************************************************************************************** |
148 | 148 | $inst = new installer(); |
149 | | -if (!$inst->get_php_version()) die('ISPConfig requieres PHP '.$inst->min_php."\n"); |
| 149 | +if (!$inst->get_php_version()) die('ISPConfig requires PHP '.$inst->min_php."\n"); |
150 | 150 | $retval=shell_exec("which which"); |
151 | | -if (empty($retval)) die ("ISPConfig requieres which \n"); |
| 151 | +if (empty($retval)) die ("ISPConfig requires which \n"); |
152 | 152 |
|
153 | 153 | $inst->check_prerequisites(); |
154 | 154 |
|
|
204 | 204 | //** Get MySQL root credentials |
205 | 205 | $finished = false; |
206 | 206 | do { |
207 | | - $tmp_mysql_server_host = $inst->free_query('MySQL server hostname', $conf['mysql']['host'],'mysql_hostname'); |
| 207 | + $tmp_mysql_server_host = $inst->free_query('MySQL server hostname', $conf['mysql']['host'],'mysql_hostname'); |
208 | 208 | $tmp_mysql_server_port = $inst->free_query('MySQL server port', $conf['mysql']['port'],'mysql_port'); |
209 | | - $tmp_mysql_server_admin_user = $inst->free_query('MySQL root username', $conf['mysql']['admin_user'],'mysql_root_user'); |
210 | | - $tmp_mysql_server_admin_password = $inst->free_query('MySQL root password', $conf['mysql']['admin_password'],'mysql_root_password'); |
211 | | - $tmp_mysql_server_database = $inst->free_query('MySQL database to create', $conf['mysql']['database'],'mysql_database'); |
| 209 | + $tmp_mysql_server_admin_user = $inst->free_query('MySQL root username', $conf['mysql']['admin_user'],'mysql_root_user'); |
| 210 | + $tmp_mysql_server_admin_password = $inst->free_query('MySQL root password', $conf['mysql']['admin_password'],'mysql_root_password'); |
| 211 | + $tmp_mysql_server_database = $inst->free_query('MySQL database to create', $conf['mysql']['database'],'mysql_database'); |
212 | 212 | $tmp_mysql_server_charset = $inst->free_query('MySQL charset', $conf['mysql']['charset'],'mysql_charset'); |
213 | | - |
| 213 | + |
214 | 214 | if($install_mode == 'expert') { |
215 | 215 | swriteln("The next two questions are about the internal ISPConfig database user and password.\nIt is recommended to accept the defaults which are 'ispconfig' as username and a random password.\nIf you use a different password, use only numbers and chars for the password.\n"); |
216 | | - |
217 | | - $conf['mysql']['ispconfig_user'] = $inst->free_query('ISPConfig mysql database username', $conf['mysql']['ispconfig_user'],'mysql_ispconfig_user'); |
| 216 | + |
| 217 | + $conf['mysql']['ispconfig_user'] = $inst->free_query('ISPConfig mysql database username', $conf['mysql']['ispconfig_user'],'mysql_ispconfig_user'); |
218 | 218 | $conf['mysql']['ispconfig_password'] = $inst->free_query('ISPConfig mysql database password', $conf['mysql']['ispconfig_password'],'mysql_ispconfig_password'); |
219 | 219 | } |
220 | 220 |
|
|
264 | 264 | //** Get MySQL root credentials |
265 | 265 | $finished = false; |
266 | 266 | do { |
267 | | - $tmp_mysql_server_host = $inst->free_query('MySQL master server hostname', $conf['mysql']['master_host'],'mysql_master_hostname'); |
| 267 | + $tmp_mysql_server_host = $inst->free_query('MySQL master server hostname', $conf['mysql']['master_host'],'mysql_master_hostname'); |
268 | 268 | $tmp_mysql_server_port = $inst->free_query('MySQL master server port', $conf['mysql']['master_port'],'mysql_master_port'); |
269 | | - $tmp_mysql_server_admin_user = $inst->free_query('MySQL master server root username', $conf['mysql']['master_admin_user'],'mysql_master_root_user'); |
270 | | - $tmp_mysql_server_admin_password = $inst->free_query('MySQL master server root password', $conf['mysql']['master_admin_password'],'mysql_master_root_password'); |
| 269 | + $tmp_mysql_server_admin_user = $inst->free_query('MySQL master server root username', $conf['mysql']['master_admin_user'],'mysql_master_root_user'); |
| 270 | + $tmp_mysql_server_admin_password = $inst->free_query('MySQL master server root password', $conf['mysql']['master_admin_password'],'mysql_master_root_password'); |
271 | 271 | $tmp_mysql_server_database = $inst->free_query('MySQL master server database name', $conf['mysql']['master_database'],'mysql_master_database'); |
272 | 272 |
|
273 | 273 | //* Initialize the MySQL server connection |
|
567 | 567 | if($conf['nginx']['installed'] == true) $conf['nginx']['vhost_port'] = $ispconfig_vhost_port; |
568 | 568 | unset($ispconfig_vhost_port); |
569 | 569 |
|
570 | | - if(strtolower($inst->simple_query('Do you want a secure (SSL) connection to the ISPConfig web interface', array('y', 'n'), 'y','ispconfig_use_ssl')) == 'y') { |
| 570 | + if(strtolower($inst->simple_query('Do you want a secure (SSL) connection to the ISPConfig web interface', array('y', 'n'), 'y','ispconfig_use_ssl')) == 'y') { |
571 | 571 | $inst->make_ispconfig_ssl_cert(); |
572 | 572 | } |
573 | 573 | $inst->install_ispconfig_interface = true; |
|
0 commit comments