Download
Download postgres from this URL: http://www.postgresql.at/download/
Installation
Click on the installation file
Then Click on the next buttons by providing proper selections
DB Connection Configuration
Add this lines of code to establish the db connection in the main config file
'db'=>array( 'connectionString' => 'pgsql:dbname=testt', 'username' => 'postgres', 'password' => 'xsysys', ),
Enabling Postgres Support in PHP
Also make sure PgSQL Support was enabled in the local system by executing phpinfo(), if not enable do the uncomment for the postgres sql support in php.ini file then restart the apache server
extension=php_pgsql.dll
You can make sure the postgressql support enabled by executing the phpinfo() function
echo phpinfo();
Enabling PostgreSQL Support in PDO
Also make sure PgSQL Support was enabled in the local system by executing phpinfo(), if not enable do the uncomment for the postgres sql support in php.ini file then restart the apache server
extension=php_pdo_pgsql.dll