How do I enable SQLite on Linux/Apache/PHP?

Posted by Edward Tanguay on Server Fault See other posts from Server Fault or by Edward Tanguay
Published on 2009-06-28T21:54:50Z Indexed on 2010/03/30 3:13 UTC
Read the original article Hit count: 689

Filed under:
|
|
|

To enable SQLite on my Windows/Apache/PHP setup, I uncomment the following lines in the php.ini file and restart Apache:

extension=php_pdo.dll
extension=php_pdo_sqlite.dll

Now I have a VPS with Suse Linux 10.3 and Apache/PHP was set automatically. Looking through the php.ini file to make the above changes, I see that things are a little different on Linux:

  • there is no list of extensions to uncomment
  • I found "extension_dir = /usr/lib/php5/extensions" but in this directory find only:
    • pdo.so
    • pdo_mysql.so

How can I enable SQLite in this Linux environment?

© Server Fault or respective owner

Related posts about php

Related posts about linux