Warning: session_start(): Failed to initialize storage module: user (path: /var/lib/php/sessions) in /var/www/html/ksn/vendor/zendframework/zend-session/src/SessionManager.php on line 140

Fatal error: Uncaught MongoDB\Driver\Exception\ConnectionTimeoutException: No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '127.0.0.1:27017'] in /var/www/html/ksn/vendor/mongodb/mongodb/src/Collection.php:324 Stack trace: #0 /var/www/html/ksn/vendor/mongodb/mongodb/src/Collection.php(324): MongoDB\Driver\Manager->selectServer(Object(MongoDB\Driver\ReadPreference)) #1 /var/www/html/ksn/vendor/mongodb/mongodb/src/Collection.php(292): MongoDB\Collection->createIndexes(Array, Array) #2 /var/www/html/ksn/vendor/zendframework/zend-session/src/SaveHandler/MongoDB.php(99): MongoDB\Collection->createIndex(Array, Array) #3 [internal function]: Zend\Session\SaveHandler\MongoDB->open('/var/lib/php/se...', 'ksn') #4 /var/www/html/ksn/vendor/zendframework/zend-session/src/SessionManager.php(140): session_start() #5 /var/www/html/ksn/module/Application/Module.php(150): Zend\Session\SessionManager->start() #6 /var/www/html/ksn/module/Application/Module.php(59): Application\Module->bootstr in /var/www/html/ksn/vendor/mongodb/mongodb/src/Collection.php on line 324