Warning: pg_connect(): Unable to connect to PostgreSQL server: connection to server at "10.120.11.39", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? in /var/www/html/rake.php on line 10

Fatal error: Uncaught TypeError: pg_query(): Argument #1 ($connection) must be of type PgSql\Connection, false given in /var/www/html/rake.php:26 Stack trace: #0 /var/www/html/rake.php(26): pg_query() #1 {main} thrown in /var/www/html/rake.php on line 26