Installing SQLite

Problem

You'd like to use SQLite, but PHP isn't configured for it.

Solution

Install the PHP Driver for SQLite.

$ sudo apt-get install -y php5-sqlite

Then restart apache.

$ sudo service apache2 restart

Discussion

SQLite requires no server.

It is a self-contained SQL database engine. Most often SQLite is used for testing, but it can be useful for small applications.

See also Setting up the SQLite Database Driver.

comments powered by Disqus