Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

site.ini [LibSQLSettings]

The settings of [LibSQLSettings] in site.ini: Mode, CAFile, URL, TLS, AuthToken, Timeout, ConnectAttempts, ConnectWait ...

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/site/LibSQLSettings.md

On this page

site.ini [LibSQLSettings]

The block [LibSQLSettings] of settings/site.ini, with 9 setting(s).

libSQL (DatabaseImplementation=libsql, expLibSQLDB) and Turso (turso, expTursoDB): the site's database on a libSQL
server (sqld, the libsql-server container) or in Turso's cloud, reached over the server's HTTP API (Hrana) with PHP's
curl extension (or allow_url_fopen). The SQL is SQLite's: the kernel's SQLite schema and the SQLite driver are used,
databaseName() is "sqlite". [DatabaseSettings] Server and Port name the server (default port 8080 for libsql, 443
with HTTPS for turso), Password is the auth token. See the libSQL driver documentation.

Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/site.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/site.ini.append.php for one siteaccess,
  • extension/<extension>/settings/site.ini.append.php in an extension (read when the extension is active).

Mode

remote: a libSQL server over HTTP (Server/Port or URL); file: the embedded file mode, the database a local file in
var/storage/sqlite3 (Database is its name), opened by PHP's sqlite3 as an SQLite site's, no server. Turso: remote

Default: remote.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
Mode=remote
*/ ?>

CAFile

The CA file that checks the server's certificate over https; empty: the system's CAs

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
CAFile=
*/ ?>

URL

The server's URL, replacing Server and Port: http://host:8080, https://host or libsql://<db>-<org>.turso.io

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
URL=
*/ ?>

TLS

https: enabled, disabled, or auto (Turso, or port 443)

Default: auto.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
TLS=auto
*/ ?>

AuthToken

The auth token (a JWT); empty: [DatabaseSettings] Password, then the environment's LIBSQL_AUTH_TOKEN
(TURSO_AUTH_TOKEN for turso)

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
AuthToken=
*/ ?>

Timeout

Seconds one request may take (at least the statements' lock wait + 5)

Default: 30.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
Timeout=30
*/ ?>

ConnectAttempts

Tries of the first connection, and the wait before the second in ms (doubled after each failure)

Default: 3.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
ConnectAttempts=3
*/ ?>

ConnectWait

Default: 200.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
ConnectWait=200
*/ ?>

KeepStream

enabled: a connection keeps its server stream open between statements (a new stream costs the server a new
connection to the database, most of a statement's time); disabled: one stream per statement outside a transaction

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[LibSQLSettings]
KeepStream=enabled
*/ ?>

Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x