Centos下安装php PDO PostgreSQL扩展

1.安装
tar -zxvf PDO_PGSQL-1.0.2.tgz
cd PDO_PGSQL-1.0.2
~/php/bin/phpize
export PGSQL_INCLUDE=/home/users/yanjingang/postgresql/include
export PGSQL_LIBDIR=/home/users/yanjingang/postgresql/lib
./configure –with-php-config=/home/users/yanjingang/php/bin/php-config –with-pdo-pgsql=/home/users/yanjingang/postgresql/ –with-pgsql=/home/users/yanjingang/postgresql/
make && make install
2.配置
vim php/etc/ext/pdo_pgsql.ini   添加
[pdo_pgsql]
extension=”pdo_pgsql.so”
~/php/sbin/php-fpm restart
~/webserver/bin/lighttpd.sh restart
3.done

 

发表评论

邮箱地址不会被公开。