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 /root/trackdirect/htdocs/includes/pdoconnection.class.php:39
Stack trace:
#0 /root/trackdirect/htdocs/includes/pdoconnection.class.php(39): PDO->__construct()
#1 /root/trackdirect/htdocs/includes/pdoconnection.class.php(59): PDOConnection->createConnection()
#2 /root/trackdirect/htdocs/includes/pdoconnection.class.php(84): PDOConnection->getConnection()
#3 /root/trackdirect/htdocs/includes/pdoconnection.class.php(96): PDOConnection->prepare()
#4 /root/trackdirect/htdocs/includes/repositories/modelrepository.class.php(39): PDOConnection->prepareAndExec()
#5 /root/trackdirect/htdocs/includes/repositories/stationrepository.class.php(44): ModelRepository->getObjectFromSql()
#6 /root/trackdirect/htdocs/public/views/overview.php(3): StationRepository->getObjectById()
#7 /root/trackdirect/htdocs/public/index.php(313): include('/root/trackdire...')
#8 {main}