PDOException Object
(
    [message:protected] => SQLSTATE[08006] [7] could not connect to server: Connection refused
	Is the server running on host "ctn-chile.cpxas9aiwzvq.us-west-2.rds.amazonaws.com" (172.31.22.23) and accepting
	TCP/IP connections on port 5432?
    [string:Exception:private] => 
    [code:protected] => 7
    [file:protected] => /data/public/peru/FUENTES/web/phpfw/PHPFW.php
    [line:protected] => 398
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /data/public/peru/FUENTES/web/phpfw/PHPFW.php
                    [line] => 398
                    [function] => __construct
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => pgsql:host=ctn-chile.cpxas9aiwzvq.us-west-2.rds.amazonaws.com;port=5432;dbname=ctnperu2
                            [1] => ctn
                            [2] => ctn.,lnx
                            [3] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /data/public/peru/FUENTES/web/phpfw/PHPFW.php
                    [line] => 174
                    [function] => initDatabaseConnections
                    [class] => PHPFW
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [file] => /data/public/peru/web/base.php
                    [line] => 23
                    [function] => init
                    [class] => PHPFW
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => 
)
Initialization error. Check log file for details.SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host "ctn-chile.cpxas9aiwzvq.us-west-2.rds.amazonaws.com" (172.31.22.23) and accepting TCP/IP connections on port 5432?