Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? in /home/www/pgsqli_RTFRD_connect.php on line 7

Fatal error: Uncaught PDOException: SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? in /home/www/pgsqli_RTFRD_connect.php:8 Stack trace: #0 /home/www/pgsqli_RTFRD_connect.php(8): PDO->__construct('pgsql:host=loca...', 'postgres', 'zby123456') #1 /home/www/html/CRTPS/index.php(3): require('/home/www/pgsql...') #2 {main} thrown in /home/www/pgsqli_RTFRD_connect.php on line 8