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 /var/www/teachade/includes/database.php:9
Stack trace:
#0 /var/www/teachade/includes/database.php(9): PDO->__construct('pgsql:host=loca...', 'teachade', 'L3@rnM3')
#1 /var/www/teachade/includes/api.php(4): require_once('/var/www/teacha...')
#2 /var/www/teachade/register.php(2): require('/var/www/teacha...')
#3 {main}
thrown in /var/www/teachade/includes/database.php on line 9