} } if ($conf['services']['web'] && $inst->install_ispconfig_interface) { //** Customise the port ISPConfig runs on $ispconfig_port_number = get_ispconfig_port_number(); if ($autoupdate['ispconfig_port'] == 'default') { $autoupdate['ispconfig_port'] = $ispconfig_port_number; } if ($conf['webserver']['server_type'] == 'nginx') { $conf['nginx']['vhost_port'] = $inst->free_query('ISPConfig Port', $ispconfig_port_number, 'ispconfig_port'); } else { $conf['apache']['vhost_port'] = $inst->free_query('ISPConfig Port', $ispconfig_port_number, 'ispconfig_port'); } // $ispconfig_ssl_default = (is_ispconfig_ssl_enabled() == true)?'y':'n'; if (strtolower($inst->simple_query('Create new ISPConfig SSL certificate', array('yes', 'no'), 'no', 'create_new_ispconfig_ssl_cert')) == 'yes') { $inst->make_ispconfig_ssl_cert(); } } $inst->install_ispconfig(); // Cleanup $inst->cleanup_ispconfig(); //** Configure Crontab $update_crontab_answer = $inst->simple_query('Reconfigure Crontab?', array('yes', 'no'), 'yes', 'reconfigure_crontab'); if ($update_crontab_answer == 'yes') { swriteln('Updating Crontab'); $inst->install_crontab(); } //** Restart services: if ($reconfigure_services_answer == 'yes') { swriteln('Restarting services ...'); if ($conf['mysql']['installed'] == true && $conf['mysql']['init_script'] != '') {