| | |
| | | |
| | | //** Check for ISPConfig 2.x versions |
| | | if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) { |
| | | die('This software can not be installed on a server wich runs ISPConfig 2.x.'); |
| | | die('This software cannot be installed on a server wich runs ISPConfig 2.x.'); |
| | | } |
| | | |
| | | //** Get distribution identifier |
| | |
| | | $conf_old = $conf; |
| | | unset($conf); |
| | | |
| | | if($dist['id'] == '') die('Linux Dustribution or Version not recognized.'); |
| | | if($dist['id'] == '') die('Linux distribution or version not recognized.'); |
| | | |
| | | //** Include the distribution specific installer class library and configuration |
| | | //** Include the distribution-specific installer class library and configuration |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once('dist/lib/'.$dist['baseid'].'.lib.php'); |
| | | include_once('dist/lib/'.$dist['id'].'.lib.php'); |
| | | include_once('dist/conf/'.$dist['id'].'.conf.php'); |
| | |
| | | exec('hostname -f', $tmp_out); |
| | | $conf['hostname'] = $tmp_out[0]; |
| | | unset($tmp_out); |
| | | |
| | | |
| | | //** Set the mysql login information |
| | | $conf["mysql"]["host"] = $conf_old["db_host"]; |
| | |
| | | * (if this is done at client side, only this client is updated. |
| | | * If this is done at server side, all clients are updated. |
| | | */ |
| | | //if($conf['mysql']['master_slave_setup'] == 'y') { |
| | | //if($conf_old['dbmaster_user'] != '' or $conf_old['dbmaster_host'] != '') { |
| | | //** Update master database rights |
| | | $reconfigure_master_database_rights_answer = $inst->simple_query('Reconfigure Permissions in master database?', array('yes','no'),'no'); |
| | | |
| | |
| | | swriteln('Configuring Apps vhost'); |
| | | $inst->configure_apps_vhost(); |
| | | } |
| | | |
| | | |
| | | |
| | | //* Configure DBServer |
| | | swriteln('Configuring Database'); |
| | | $inst->configure_dbserver(); |
| | | |
| | | |
| | | |
| | | //if(@is_dir('/etc/Bastille')) { |
| | | //* Configure Firewall |
| | | swriteln('Configuring Firewall'); |
| | |
| | | |
| | | |
| | | //** Customise the port ISPConfig runs on |
| | | $conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', '8080'); |
| | | $ispconfig_port_number = get_ispconfig_port_number(); |
| | | $conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', $ispconfig_port_number); |
| | | |
| | | // $ispconfig_ssl_default = (is_ispconfig_ssl_enabled() == true)?'y':'n'; |
| | | if(strtolower($inst->simple_query('Create new ISPConfig SSL certificate',array('yes','no'),'no')) == 'yes') { |
| | | $inst->make_ispconfig_ssl_cert(); |
| | | } |
| | | |
| | | $inst->install_ispconfig(); |
| | | |