Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 need to get sqlite 3 installed for php on a CentOS but its still telling that it's not installed.

I did the command and got this message:

yum install sqlite
Package sqlite-3.6.20-1.el6.x86_64 already installed and latest version

I looked into php.ini and notice this, but not sure if it's any use

;sqlite.assoc_case = 0

;sqlite3.extension_dir =:

Let me know what else you need?

share|improve this question

migrated from Sep 11 '12 at 22:21

This question came from our site for professional and enthusiast programmers.

Did you build this PHP install? Do you see an .so file for it in your ext dir? On Linux or Unix operating systems, if you build PDO as a shared extension, you must build SQLite as a shared extension using the --with-sqlite=shared configure option. – ficuscr Sep 10 '12 at 17:48
What version of PHP are you using? Did you look at your phpinfo() output? Have you taken a look at – ub3rst4r Sep 10 '12 at 17:49
no .so file for sqlite, and I have php 5.3.3 – Ming Sep 10 '12 at 18:05
You'll need to use phpize and build it form source then. – ficuscr Sep 10 '12 at 18:11
up vote 1 down vote accepted

SQLite support for PHP is included in the php-pdo package.

yum install php-pdo
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.