installation of pdo_pgsql on centos

20,828
--with-pgsql=shared

Indicates, that the default PostgreSQL extension was compiled as a module when your PHP was compiled.

Pecl doesn't simply install a module, it also compiles them from source and therefore has a lot of dependencies which are not automatically resolved.

If pecl doesn't output any error message you probably simply need to add the extension in your /etc/php.ini

extension=pdo_pgsql.so

Did you try to install the extension using yum?

EDIT

To remove an pecl extension

sudo pecl uninstall extension_name

Don't forget to restart Apache after your installation so any changes actually have an effect.

sudo service httpd restart
Share:
20,828
Neeraj
Author by

Neeraj

Updated on November 11, 2020

Comments

  • Neeraj
    Neeraj over 3 years

    I have install pdo_pgsql by running command below command on CentOS 5.7

    pecl install pdo_pgsql
    

    But it does not show at phpinfo page as an installed extension. The only info i see at there is

    --with-pgsql=shared
    

    have i missed anything?

    At my machine php 5.3.3 is installed.