INSTALL.sqlite.txt 1.5 KB

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