怎样让rh9默认安装的php支持pgsql?

由 emylekao 在 10-26-2003 07:36 发表:

怎样让rh9默认安装的php支持pgsql?

怎样让php支持pgsql?

我用的是rh9的php默认安装,查看phpinfo有以下信息:

'--with-pgsql=shared'

下面是我php.ini里面关于pgsql的部分:

[PostgresSQL]

542 ; Allow or prevent persistent links.

543 pgsql.allow_persistent = On

544

545 ; Detect broken persistent links always with pg_pconnect(). Need a little overhead.

546 pgsql.auto_reset_persistent = Off

547

548 ; Maximum number of persistent links. -1 means no limit.

549 pgsql.max_persistent = -1

550

551 ; Maximum number of links (persistent+non persistent). -1 means no limit.

552 pgsql.max_links = -1

可是我使用phpPgAdmin的时候,说我的php不支持pgsql。我应该怎样改才可以支持呢?


www.bymg.com

关于Python/PHP、Linux和FreeBSD。

Linux/FreeBSD忠实爱好者

希望对推动Linux在中国的发展略尽微薄之力。

Fedora core 2 & FreeBSD 4.10


由 dato 在 10-26-2003 08:43 发表:


--with-pgsql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL

base install directory, defaults to /usr/local/pgsql.

你看到的信息只是php.ini全局变量里的相关设置,从源码编绎看上面。一般像发行版来说应该有类似这样的包像什么mod_gd或者php-gd之类的,安装后在php.ini里通过extension加载,更详细请看php.ini或者到php.net查阅在线手册

<font face="腩戾,verdana, arial, helvetic

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus