Skip to content
Advertisement

Adding PostgreSQL support to already installed PHP

I have php-5.3.6 and postgresql installed in my Fedora 13. But it seems that postgresql support is not enabled in php. My phpinfo() page doesn’t show any PostgreSQL section, neither pdo_pgsql section.

I checked /etc/php.ini, and it shows that PostgresSQL is enabled.

JavaScript

Is there any way I can add postgresql support to php without recompiling it from the source? Is there any other files I need to make some changes?

Advertisement

Answer

Run yum install php-pgsql php-pdo_pgsql to install the PHP Postgres package.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement