Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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