[Bitrix\Main\DB\ConnectionException] 
Mysql connect error [localhost, 127.0.0.1]: Can't connect to local MySQL server through socket '/var/lib/mysqld/mysqld.sock' (2) (400)
/home/bitrix/www/bitrix/modules/main/lib/db/mysqlconnection.php:43
#0: Bitrix\Main\DB\MysqlConnection->connectInternal()
	/home/bitrix/www/bitrix/modules/main/lib/db/mysqlconnection.php:91
#1: Bitrix\Main\DB\MysqlConnection->queryInternal(string, array, NULL)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:332
#2: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/modulemanager.php:20
#3: Bitrix\Main\ModuleManager::getInstalledModules()
	/home/bitrix/www/bitrix/modules/main/lib/loader.php:77
#4: Bitrix\Main\Loader::includeModule(string)
	/home/bitrix/www/bitrix/modules/main/lib/data/connectionpool.php:279
#5: Bitrix\Main\Data\ConnectionPool->createSlaveConnection()
	/home/bitrix/www/bitrix/modules/main/lib/data/connectionpool.php:218
#6: Bitrix\Main\Data\ConnectionPool->getSlaveConnection(string)
	/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:320
#7: Bitrix\Main\DB\Connection->query(string)
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:248
#8: Bitrix\Main\EventManager->loadEventHandlers()
	/home/bitrix/www/bitrix/modules/main/lib/eventmanager.php:340
#9: Bitrix\Main\EventManager->findEventHandlers(string, string)
	/home/bitrix/www/bitrix/modules/main/classes/general/module.php:340
#10: GetModuleEvents(string, string, boolean)
	/home/bitrix/www/bitrix/modules/main/include.php:1
#11: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#12: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:11
#13: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#14: require(string)
	/home/bitrix/www/archive/news/index.php:2