From 8c5f5493878930616f066663d3802598421882c9 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 17 Sep 2009 11:28:12 -0400 Subject: [PATCH] Fixed: FS#894 - Improve mysql connection error handling in installer Check if the mysql_connect function exists in the installer. --- install/install.php | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/install/install.php b/install/install.php index 15defd6..43ba2e5 100644 --- a/install/install.php +++ b/install/install.php @@ -109,6 +109,9 @@ $conf['hostname'] = $inst->free_query('Full qualified hostname (FQDN) of the server, eg server1.domain.tld ', $tmp_out[0]); unset($tmp_out); +// Check if the mysql functions are loaded in PHP +if(!function_exists('mysql_connect')) die('No PHP mysql functions available. Please ensure that the PHP mysql module is loaded.'); + //** Get MySQL root credentials $finished = false; do { -- Gitblit v1.9.1