Skip to main content

Unable to install pdo_pgsql

Comments

5 comments

  • cPanelMichael
    Hello, Could you verify if PostgreSQL is already installed on your system? You can follow the instructions on the
    0
  • Damian Georgiou
    Yes postgreSQL is installed on the system and has been in operation for the last 3 years using php pg_connect. Unfortunately a new app to be installed requires PDO.
    PostgreSQL 8.4.20 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17), 64-bit
    0
  • cPanelMichael
    Hello, Here's an unsupported guide on installing the module with EasyApache 3. Keep in mind the PostgreSQL driver for PDO was last released in 2006 and it's generally a better idea to consult with the developer of the script you are using to see the available alternatives.
    cd /root/ wget http://pecl.php.net/get/PDO_PGSQL-1.0.2.tgz tar -xzf PDO_PGSQL-1.0.2.tgz cd PDO_PGSQL-1.0.2/ phpize ./configure make && make install
    Next, edit your php.ini file and add the following entry before saving and restarting Apache:
    extension=pdo_pgsql.so
    Thank you.
    0
  • Damian Georgiou
    that did the trick. Thankyou good sir !
    0
  • cPanelMichael
    I'm happy to see those instructions were helpful. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.