1

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?

4
  • 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, 2012 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? Sep 10, 2012 at 17:49
  • no .so file for sqlite, and I have php 5.3.3
    – Ming
    Sep 10, 2012 at 18:05
  • You'll need to use phpize and build it form source then.
    – ficuscr
    Sep 10, 2012 at 18:11

1 Answer 1

2

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

yum install php-pdo

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .