Fatal error: Uncaught PDOException: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? in /var/www/html/src/includes/db.php:8 Stack trace: #0 /var/www/html/src/includes/db.php(8): PDO->__construct('pgsql:host=127....', 'postgres', Object(SensitiveParameterValue), Array) #1 /var/www/html/src/includes/db.php(17): db() #2 /var/www/html/src/car-business.php(7): db_init() #3 {main} thrown in /var/www/html/src/includes/db.php on line 8