Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the VPS. I can build my PHP version using Easy Apache. I can find the option for PDO support for MySQL, SQLite. But I don't have any option of PDO pgsql driver.

How can I enable that?

It says that PECL can load other drivers but how can I install that?

share|improve this question
up vote 1 down vote accepted

In order to enable pgsql support for PDO, PHP needs to be built with the configure option --with-pdo-pgsql[=DIR] where DIR is the path to the postgresql install directory or pg_config.

Alternatively, PECL can be used to install PDO drivers: root@hostname# pecl install pdo_pgsql

However, from your reference to "easy apache", I suspect you're using cPanel and a hosting provider, in which case your question is probably better directed towards the support team of the company who you're paying.

Also, you should probably mention this and tag your question appropriately with 'cpanel' to make your question more likely to be found by people who have experience with your environment.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.