Initial Drupal 11 with DDEV setup
This commit is contained in:
39
web/core/INSTALL.sqlite.txt
Normal file
39
web/core/INSTALL.sqlite.txt
Normal file
@ -0,0 +1,39 @@
|
||||
|
||||
SQLITE REQUIREMENTS
|
||||
-------------------
|
||||
|
||||
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.
|
||||
|
||||
Windows
|
||||
-------
|
||||
Read more about it on http://www.php.net/manual/en/pdo.installation.php
|
||||
|
||||
Linux
|
||||
-----
|
||||
|
||||
sudo apt-get install php-sqlite3
|
||||
|
||||
SQLITE DATABASE CREATION
|
||||
------------------------
|
||||
|
||||
The Drupal installer will create the SQLite database for you. The only
|
||||
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
|
||||
has to remain writable by the web server going forward for SQLite to continue to
|
||||
be able to operate.
|
||||
|
||||
On the "Database configuration" form in the "Database file" field, you must
|
||||
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
|
||||
ensure that the directory is writable by the web server.
|
||||
|
||||
If you must place your database file in your webroot, you could try using the
|
||||
following in your "Database file" field:
|
||||
|
||||
sites/default/files/.ht.sqlite
|
||||
|
||||
Note: The .ht in the name will tell Apache to prevent the database from being
|
||||
downloaded. Check that the file is, indeed, protected by your webserver. If not,
|
||||
consult the documentation of your webserver on how to protect a file from
|
||||
downloading.
|
||||
Reference in New Issue
Block a user