object(PDOException)#9 (8) { ["message":protected]=> string(197) "SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host "pgsql.opcionalengenharia.com.br" (177.101.144.61) and accepting TCP/IP connections on port 5432?" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(7) ["file":protected]=> string(75) "/var/www/vhosts/opcionalengenharia.com.br/httpdocs/mastodonte/nucleo/db.php" ["line":protected]=> int(15) ["trace":"Exception":private]=> array(4) { [0]=> array(5) { ["file"]=> string(75) "/var/www/vhosts/opcionalengenharia.com.br/httpdocs/mastodonte/nucleo/db.php" ["line"]=> int(15) ["function"]=> string(11) "__construct" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" } [1]=> array(5) { ["file"]=> string(75) "/var/www/vhosts/opcionalengenharia.com.br/httpdocs/mastodonte/nucleo/db.php" ["line"]=> int(99) ["function"]=> string(13) "newConnection" ["class"]=> string(2) "db" ["type"]=> string(2) "::" } [2]=> array(5) { ["file"]=> string(77) "/var/www/vhosts/opcionalengenharia.com.br/httpdocs/mastodonte/nucleo/beta.php" ["line"]=> int(22) ["function"]=> string(7) "getInst" ["class"]=> string(8) "dbSingle" ["type"]=> string(2) "::" } [3]=> array(4) { ["file"]=> string(67) "/var/www/vhosts/opcionalengenharia.com.br/httpdocs/nucleo/alpha.php" ["line"]=> int(15) ["args"]=> array(1) { [0]=> string(77) "/var/www/vhosts/opcionalengenharia.com.br/httpdocs/mastodonte/nucleo/beta.php" } ["function"]=> string(7) "require" } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> array(3) { [0]=> string(5) "08006" [1]=> int(7) [2]=> string(177) "could not connect to server: Connection refused Is the server running on host "pgsql.opcionalengenharia.com.br" (177.101.144.61) and accepting TCP/IP connections on port 5432?" } }