| | |
| | | unset($finished); |
| | | |
| | | // Resolve the IP address of the mysql hostname. |
| | | if(!$conf['mysql']['ip'] = gethostbyname($conf['mysql']['host'])) die('Unable to resolve hostname'.$conf['mysql']['host']); |
| | | $tmp = explode(':',$conf['mysql']['host']); |
| | | if(!$conf['mysql']['ip'] = gethostbyname($tmp[0])) die('Unable to resolve hostname'.$tmp[0]); |
| | | unset($tmp); |
| | | |
| | | |
| | | //** initializing database connection |
| | |
| | | //* Configure ISPConfig |
| | | swriteln('Installing Crontab'); |
| | | $inst->install_crontab(); |
| | | if($conf['apache']['init_script'] != '') system($conf['init_scripts'].'/'.$conf['apache']['init_script'].' restart'); |
| | | if($conf['apache']['init_script'] != '' && @is_file($conf['init_scripts'].'/'.$conf['apache']['init_script'])) system($conf['init_scripts'].'/'.$conf['apache']['init_script'].' restart'); |
| | | |
| | | |
| | | |