AIX Open Source

 View Only
Expand all | Collapse all

Accessing postgres database via PHP PDO

  • 1.  Accessing postgres database via PHP PDO

    Posted Tue September 06, 2022 09:01 AM
    We are trying to access a Postgres database via PHP/PDO. However we are getting a "could not find driver" error message.

    We have the following postgres/php and httpd RPMs installed:
    $ rpm -qa | grep -i post
    postgresql-libs-11.14-1.ppc
    postgresql-server-11.14-1.ppc
    postgresql-11.14-1.ppc
    $ rpm -qa | grep -i pdo
    php-pdo-7.4.30-1.ppc
    $ rpm -qa | grep -i php
    php-common-7.4.30-1.ppc
    php-mysqlnd-7.4.30-1.ppc
    php-7.4.30-1.ppc
    php-pdo-7.4.30-1.ppc
    $ rpm -qa | grep -i httpd
    httpd-2.4.54-1.ppc

    Not sure if we need to install an additional RPM or configuration or if this is not yet supported with the available AIX Toolbox packages.


    ------------------------------
    Oliver Stadler
    ------------------------------


  • 2.  RE: Accessing postgres database via PHP PDO

    Posted Wed September 07, 2022 03:57 AM
    Right now , AIX Toolbox PHP don't have Postgresql support. It has mysql support though.
    We will try to enable postgresql support in the future php builds.

    ------------------------------
    Ayappan P
    ------------------------------