[Error]
Call to undefined function mysqli_init() (0)
/home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:48
#0: Bitrix\Main\DB\MysqliConnection->connectInternal()
/home/bitrix/www/bitrix/modules/main/lib/data/connection.php:53
#1: Bitrix\Main\Data\Connection->getResource()
/home/bitrix/www/bitrix/modules/main/lib/db/mysqlisqlhelper.php:21
#2: Bitrix\Main\DB\MysqliSqlHelper->forSql(string)
/home/bitrix/www/bitrix/modules/main/lib/config/option.php:191
#3: Bitrix\Main\Config\Option::load(string)
/home/bitrix/www/bitrix/modules/main/lib/config/option.php:38
#4: Bitrix\Main\Config\Option::get(string, string, string)
/home/bitrix/www/bitrix/modules/main/lib/httprequest.php:392
#5: Bitrix\Main\HttpRequest->prepareCookie(array)
/home/bitrix/www/bitrix/modules/main/lib/httprequest.php:69
#6: Bitrix\Main\HttpRequest->__construct(object, array, array, array, array)
/home/bitrix/www/bitrix/modules/main/lib/httpapplication.php:46
#7: Bitrix\Main\HttpApplication->initializeContext(array)
/home/bitrix/www/bitrix/modules/main/lib/application.php:122
#8: Bitrix\Main\Application->initializeExtendedKernel(array)
/home/bitrix/www/bitrix/modules/main/include.php:22
#9: require_once(string)
/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#10: require_once(string)
/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#11: require_once(string)
/home/bitrix/www/bitrix/header.php:1
#12: require(string)
/home/bitrix/www/index.php:2
Либо ошибка:
[Error]
Call to undefined function Bitrix\Main\DB\mysql_real_escape_string() (0)
/home/bitrix/www/bitrix/modules/main/lib/db/mysqlsqlhelper.php:21
#0: Bitrix\Main\DB\MysqlSqlHelper->forSql(string)
/home/bitrix/www/bitrix/modules/main/lib/config/option.php:191
#1: Bitrix\Main\Config\Option::load(string)
/home/bitrix/www/bitrix/modules/main/lib/config/option.php:38
#2: Bitrix\Main\Config\Option::get(string, string, string)
/home/bitrix/www/bitrix/modules/main/lib/httprequest.php:392
#3: Bitrix\Main\HttpRequest->prepareCookie(array)
/home/bitrix/www/bitrix/modules/main/lib/httprequest.php:69
#4: Bitrix\Main\HttpRequest->__construct(object, array, array, array, array)
/home/bitrix/www/bitrix/modules/main/lib/httpapplication.php:46
#5: Bitrix\Main\HttpApplication->initializeContext(array)
/home/bitrix/www/bitrix/modules/main/lib/application.php:122
#6: Bitrix\Main\Application->initializeExtendedKernel(array)
/home/bitrix/www/bitrix/modules/main/include.php:22
#7: require_once(string)
/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#8: require_once(string)
/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#9: require_once(string)
/home/bitrix/www/bitrix/header.php:1
#10: require(string)
/home/bitrix/www/index.php:2
Универсальное исправление ошибки
Файл /bitrix/php_interface/dbconn.php
define("BX_USE_MYSQLI", true);
Файл /bitrix/.settings.php
'className' => '\\Bitrix\\Main\\DB\\MysqliConnection',
Файл /etc/php.d/30-mysqli.ini должен быть без ";"
extension=mysqli.so
Рестарт сервера
service httpd restart
systemctl restart httpd.service
Установка на сервер mysqli расширения
yum install php-mysqli