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

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]
; http://www.php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =:

Let me know what else you need?

share|improve this question

migrated from stackoverflow.com 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 php.net/manual/en/sqlite.installation.php? –  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

1 Answer 1

up vote 0 down vote accepted

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

yum install php-pdo
share|improve this answer

Your Answer

 
discard

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.