Fatal error: Uncaught exception 'Zend\Db\Adapter\Exception\ErrorException' with message 'pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "10.10.60.49" and accepting TCP/IP connections on port 5432?' in /var/www/referat.ru/vendor/ZF2/library/Zend/Db/Adapter/Driver/Pgsql/Connection.php:184 Stack trace: #0 [internal function]: Zend\Db\Adapter\Driver\Pgsql\Connection->Zend\Db\Adapter\Driver\Pgsql\{closure}(2, 'pg_connect(): U...', '/var/www/refera...', 187, Array) #1 /var/www/referat.ru/vendor/ZF2/library/Zend/Db/Adapter/Driver/Pgsql/Connection.php(187): pg_connect('host=10.10.60.4...') #2 /var/www/referat.ru/vendor/ZF2/library/Zend/Db/Adapter/Driver/Pgsql/Pgsql.php(175): Zend\Db\Adapter\Driver\Pgsql\Connection->connect() #3 /var/www/referat.ru/vendor/ZF2/library/Zend/Db/Sql/Sql.php(120): Zend\Db\Adapter\Driver\Pgsql\Pgsql->createStatement() #4 /var/www/referat.ru/vendor/ZF2/library/Zend/Db/TableGateway/AbstractTableGateway.php(232 in /var/www/referat.ru/vendor/ZF2/library/Zend/ServiceManager/ServiceManager.php on line 904