Super User is a question and answer site for computer enthusiasts and power users. 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

When i run


i can see that the only available driver is sqlite, and i want to use Postgresql. What should i do to accomplish that?

share|improve this question
up vote 8 down vote accepted
yum install php5-pgsql

pdo_pgsql is included in php5-pgsql.

share|improve this answer
There is no such package available... – Anton Gildebrand Sep 16 '12 at 17:07
That's probably because this package doesn't exist in the default repository. Here you can find instructions about how to add a repository that contains these packages. – Samy Dindane Sep 16 '12 at 17:18
I tried "yum install php54w-pgsql", but then PHP wont work at all (printed in plain text) – Anton Gildebrand Sep 16 '12 at 17:19
Worked it out. Thought php54w-pgsql was a package with php and pgsql, and not only an update. Installed php54w again and php54w-pgsql on top of that :) – Anton Gildebrand Sep 16 '12 at 17:48
Using php5-pgsql solved my problem on CentOS 6 – DeadEye Jul 1 '15 at 9:47

You need to run for php 5.5:

yum install php55w-pgsql

For php 5.6 command is:

yum install php56w-pgsql

If you need another php extension, please read this article: PHP 5.6 on CentOS/RHEL 7.1 and 6.7 via Yum

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.