2009-03-13 21:41:15 +00:00
|
|
|
|
|
|
|
SQLITE REQUIREMENTS
|
|
|
|
-------------------
|
|
|
|
|
2019-05-24 10:36:30 +00:00
|
|
|
PHP's PDO SQLite driver must be enabled. If you do not have pdo_sqlite
|
|
|
|
available, depending on your system there are different ways to install it.
|
Issue #2911319 by alexpott, dawehner, mglaman, mradcliffe, heddn, pbirk, danquah, maxstarkenburg, geerlingguy, vaplas, Chelsee, ressa, Chi, jonathanshaw, Mile23, andypost, larowlan, phenaproxima, droffats, kim.pepper, scotty, dsnopek, cashwilliams, borisson_, Mixologic, gerzenstl, David Radcliffe: Provide a single command to install & run Drupal
2018-05-03 22:36:08 +00:00
|
|
|
|
|
|
|
Windows
|
|
|
|
-------
|
|
|
|
Read more about it on http://www.php.net/manual/en/pdo.installation.php
|
|
|
|
|
|
|
|
Linux
|
|
|
|
-----
|
|
|
|
|
|
|
|
sudo apt-get install php-sqlite3
|
|
|
|
|
2009-03-13 21:41:15 +00:00
|
|
|
SQLITE DATABASE CREATION
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
The Drupal installer will create the SQLite database for you. The only
|
2011-01-28 06:54:44 +00:00
|
|
|
requirement is that the installer must have write permissions to the directory
|
|
|
|
where the database file resides. This directory (not just the database file) also
|
Issue #2898947 by rajandro, jungle, ankit.singh, AkashkumarOSL, Lal_, shimpy, Saurabh_sgh, markdorison, gnikolovski, jordanwood, librarylasso, Swapnil_Kotwal, mrinalini9, chiranjeeb2410, codersukanta, daffie, xjm, alexpott, mmjvb, mparker17, MaskyS, larowlan, quietone: Change "writeable" to "writable" in documentation
2020-06-28 12:46:45 +00:00
|
|
|
has to remain writable by the web server going forward for SQLite to continue to
|
2011-01-28 06:54:44 +00:00
|
|
|
be able to operate.
|
2009-03-13 21:41:15 +00:00
|
|
|
|
2010-11-29 02:55:57 +00:00
|
|
|
On the "Database configuration" form in the "Database file" field, you must
|
2009-03-13 21:41:15 +00:00
|
|
|
supply the exact path to where you wish your database file to reside. It is
|
|
|
|
strongly suggested that you choose a path that is outside of the webroot, yet
|
Issue #2898947 by rajandro, jungle, ankit.singh, AkashkumarOSL, Lal_, shimpy, Saurabh_sgh, markdorison, gnikolovski, jordanwood, librarylasso, Swapnil_Kotwal, mrinalini9, chiranjeeb2410, codersukanta, daffie, xjm, alexpott, mmjvb, mparker17, MaskyS, larowlan, quietone: Change "writeable" to "writable" in documentation
2020-06-28 12:46:45 +00:00
|
|
|
ensure that the directory is writable by the web server.
|
2009-03-13 21:41:15 +00:00
|
|
|
|
|
|
|
If you must place your database file in your webroot, you could try using the
|
2010-11-29 02:55:57 +00:00
|
|
|
following in your "Database file" field:
|
2009-03-13 21:41:15 +00:00
|
|
|
|
|
|
|
sites/default/files/.ht.sqlite
|
|
|
|
|
|
|
|
Note: The .ht in the name will tell Apache to prevent the database from being
|
|
|
|
downloaded. Please check that the file is, indeed, protected by your webserver.
|
|
|
|
If not, please consult the documentation of your webserver on how to protect a
|
|
|
|
file from downloading.
|