adff4682e25290deeed6c3887301b42422288fe9
[yaffs-website] / web / core / INSTALL.sqlite.txt
1
2 SQLITE REQUIREMENTS
3 -------------------
4
5 To use SQLite with your Drupal installation, the following requirements must be
6 met: Server has PHP 5.3.10 or later with PDO, and the PDO SQLite driver must be
7 enabled.
8
9 If you have not pdo_sqlite available depending on your system there are different ways to install it.
10
11 Windows
12 -------
13 Read more about it on http://www.php.net/manual/en/pdo.installation.php
14
15 Linux
16 -----
17
18   sudo apt-get install php-sqlite3
19
20 SQLITE DATABASE CREATION
21 ------------------------
22
23 The Drupal installer will create the SQLite database for you. The only
24 requirement is that the installer must have write permissions to the directory
25 where the database file resides. This directory (not just the database file) also
26 has to remain writeable by the web server going forward for SQLite to continue to
27 be able to operate.
28
29 On the "Database configuration" form in the "Database file" field, you must
30 supply the exact path to where you wish your database file to reside. It is
31 strongly suggested that you choose a path that is outside of the webroot, yet
32 ensure that the directory is writeable by the web server.
33
34 If you must place your database file in your webroot, you could try using the
35 following in your "Database file" field:
36
37   sites/default/files/.ht.sqlite
38
39 Note: The .ht in the name will tell Apache to prevent the database from being
40 downloaded. Please check that the file is, indeed, protected by your webserver.
41 If not, please consult the documentation of your webserver on how to protect a
42 file from downloading.