debian下面安装,图省事,用了apt-get。
apt-get install php5-pgsql
修改php.ini 增加下面的代码来支持Postgre连接
extension=pgsql.so
php postgre