| | |
| | | |
| | | //* Create the mysql database |
| | | $inst->configure_database(); |
| | | |
| | | //* Insert the Server record into the database |
| | | $inst->add_database_server_record(); |
| | | |
| | | //* Configure postfix |
| | | $inst->configure_postfix(); |
| | |
| | | }else{ |
| | | |
| | | //** Get Server ID |
| | | $conf['server_id'] = $inst->free_query('Unique Numeric ID of the server','1'); |
| | | // $conf['server_id'] = $inst->free_query('Unique Numeric ID of the server','1'); |
| | | // Server ID is an autoInc value of the mysql database now |
| | | |
| | | if(strtolower($inst->simple_query('Create Database',array('y','n'),'y')) == 'y') { |
| | | //* Create the mysql database |
| | | $inst->configure_database(); |
| | | system('/etc/init.d/mysql restart'); |
| | | |
| | | //* Insert the Server record into the database |
| | | $inst->add_database_server_record(); |
| | | } |
| | | |
| | | if(strtolower($inst->simple_query('Configure Mail', array('y','n') ,'y') ) == 'y') { |