I've seen similar questions but none that address my situation adequately. I'm running Apache and PHP 5.3.6 on a amazon cloud server.

phpinfo keeps stating that sqlite is disabled. At least that what it seems from the configure line:

'./configure' ... '--without-sqlite'

In other parts of phpinfo() output:

PDO
PDO drivers     mysql, sqlite
PDO Driver for SQLite 3.x   enabled
SQLite Library  3.6.20 

sqlite3
SQLite3 support enabled
SQLite3 module version  0.7-dev
SQLite Library  3.6.20

Directive   Local Value Master Value
sqlite3.extension_dir   no value    no value

and at least one the following PHP commands fail:

if (!extension_loaded('SQLite') OR !function_exists('sqlite_open'))

Yum install states that both sqlite and pdo-lite are already installed.

I've tried to enable sqlite by editing my local php.ini by adding:

; Enable sqlite3 extension module
extension=sqlite3.so

I've checked the main php.ini (/etc/php.ini) and there is nothing specific about disabling it. In fact, there is a sub-conig file loaded in php.d that also specifies this extension as well as another for the pdo-sqlite

I'm running of things to look for or try. Any suggestions.

How do I find where the PHP configure is stated?

Thanks

link|improve this question
feedback

1 Answer

Make sure that /etc/php.ini appeared in the Loaded Configuration File line.

--without-sqlite don't talk about whether sqlite library is installed or not. Search sqlite in phpinfo() page to see if you have SQLite Library enabled.

link|improve this answer
It is, indeed, the loaded configuration file. But I think there is some configure file somewhere passed at init time. Where would that be? – Jahmic Sep 21 '11 at 9:02
In other parts of phpinfo() output: PDO: PDO drivers mysql, sqlite PDO Driver for SQLite 3.x enabled SQLite Library 3.6.20 sqlite3 SQLite3 support enabled SQLite3 module version 0.7-dev SQLite Library 3.6.20 Directive Local Value Master Value sqlite3.extension_dir no value no value – Jahmic Sep 21 '11 at 10:49
feedback

Your Answer

 
or
required, but never shown

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