Manual:$wgSQLiteDataDir

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<translate> SQLite-specific</translate>: $wgSQLiteDataDir
To override default SQLite data directory.
<translate> Introduced in version:</translate>1.13.0 (r34457)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(path)
<translate> Default value:</translate>''

Details

To override default SQLite data directory.

By default it is "data" directory in the parent of the document root (i.e. the folder where the web server stores web documents).

SQLite stores each database in its own file. So MediaWiki must give it the directory and filename, to get access to the database. This also applies to humans trying to access the database on the terminal (see Manual:SQLite).

This variable allows for storing the database outside the document root, because, in most cases, one does not want to give access to the database file through the web.