From 399f825f9d41e81c2bd43fb3316ce72d44d0175a Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 10 Mar 2009 15:56:57 -0400 Subject: [PATCH] Split the mysql host into port and hostname in installer before trying to get the IP. --- install/install.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/install/install.php b/install/install.php index 62676e7..9474eb5 100644 --- a/install/install.php +++ b/install/install.php @@ -129,7 +129,9 @@ 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 -- Gitblit v1.9.1