mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix an issue with web installer looking for the mysqli extension when we only use pdo_mysql (#9958)
This commit is contained in:
@ -27,7 +27,7 @@ $init_modules = array('web', 'nodb');
|
||||
require realpath(__DIR__ . '/..') . '/includes/init.php';
|
||||
|
||||
// List of php modules we expect to see
|
||||
$modules = array('gd','mysqlnd');
|
||||
$modules = array('gd','mysqlnd', 'pdo_mysql');
|
||||
|
||||
$dbhost = @$_POST['dbhost'] ?: 'localhost';
|
||||
$dbuser = @$_POST['dbuser'] ?: 'librenms';
|
||||
|
@ -47,8 +47,8 @@ function dbConnect($db_host = null, $db_user = '', $db_pass = '', $db_name = '',
|
||||
return Eloquent::DB();
|
||||
}
|
||||
|
||||
if (!function_exists('mysqli_connect')) {
|
||||
throw new DatabaseConnectException("mysqli extension not loaded!");
|
||||
if (!extension_loaded('pdo_mysql')) {
|
||||
throw new DatabaseConnectException("PHP pdo_mysql extension not loaded!");
|
||||
}
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user