Per installare SQLite su Ubuntu, aprire semplicemente il Gestore pacchetti Synaptic (Sistema -> Amministrazione -> Gestore pacchetti) e installare “sqlite3” e “libsqlite3-dev”.

Oppure aprire una shell e dare il comando:

# sudo apt-get install sqlite3 libsqlite3-dev

Se occorre anche il modulo per php5, aggiungere dal Gestore pacchetti anche “php5-sqlite”.

Oppure da shell:

# sudo apt-get install php5-sqlite

Ricordarsi di riavviare Apache2:

# sudo /etc/init.d/apache2 restart

Per creare un database:

$ sqlite3 test.db
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .quit
$

Potrebbe interessarti anche: