[FrankenPHPSettings]
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
The group [FrankenPHPSettings] of settings/velocity.ini.
File
settings/velocity.ini; override it in settings/override/velocity.ini.append.php, in a siteaccess or in an extension.
Settings
| Setting | Default | Description |
|---|---|---|
| Port | 8089 | This engine's own address and pool. Empty = the [ServerSettings] value; set, so that it can run beside the other engines. Workers is the number of PHP threads. |
| HTTPSPort | 8444 | |
| HTTPS | enabled | HTTPS on HTTPSPort beside plain HTTP on Port -- on by default, so a development machine has https:// from the first start. It uses [HTTPSSettings] Certificate and Key when both are set; with both empty it makes a self-signed certificate for this machine (localhost, 127.0.0.1, ::1, the host name) in var/vc/frankenphp/tls/, valid a year and renewed a month before it runs out. A browser warns about that one: fine for development and behind a reverse proxy, not for visitors -- a public site names its certificate here or terminates TLS in front. When the self-signed one cannot be made (no openssl extension) the server starts with plain HTTP and says why. `start --no-https` leaves it off for one start, `start --https` insists on it; disabled switches it off for good. |
| Host | (empty) | |
| Workers | (empty) | PHP threads, and extra threads started under load (num_threads and max_threads). Empty = twice the CPU cores and no extra, FrankenPHP's own default -- never the Qbix server's [ServerSettings] Workers, which counts processes, most of them idle, where these are threads that all run at once. More threads than that makes heavy load slower: 64 concurrent rendered pages did 16.0 req/s at 12-48 threads on a 12-core machine and 14.6 at 96 or 590, with 24% more CPU per page at 590 (measured 2026-09-26). |
| SpareWorkers | (empty) | |
| DocumentRoot | (empty) | |
| Version | 1.12.7 | The release `exp:velocity install` downloads, and the checksums it insists on. Moving to a new release means changing Version and every Sha256[] line together; the files are named after the version, so the old binary stays next to the new one and going back is only this setting. |
| Variant | gnu | Which build of that release, on Linux: gnu linked against glibc. The default: glibc's allocator is faster than musl's under PHP, and it can load .so extensions (oci8 ...). Needs glibc 2.17 or later -- any distribution but Alpine. musl fully static, needs nothing from the system; for Alpine. mimalloc musl with the mimalloc allocator (x86_64 only). macOS always gets the one build there is. The official builds carry the PHP version the project chose for that release (1.12.x: PHP 8.5). |
| BinaryPath | (empty) | An own binary instead of the download: another PHP version, extra Caddy modules, a distribution package. Nothing is downloaded then, and it is checked against BinarySha256 only when that is set. |
| BinarySha256 | (empty) | |
| BinaryDir | var/vc/frankenphp/bin | Where install puts the binary. Relative paths resolve against the root. |
| AutoInstall | enabled | Install on the first start when the binary is missing. |
| DownloadUrl | https://github.com/php/frankenphp/releases/download/v{version}/{asset} | Where the binary comes from. {version} and {asset} are filled in. ApiUrl is read only by install --trust-github-digest, for a version with no Sha256. |
| ApiUrl | https://api.github.com/repos/php/frankenphp/releases/tags/v{version} | |
| Sha256[<key>] | frankenphp-linux-x86_64=378fbac43deb0585be0ad554769fe52421d1391f2cc8ca87e6201a12c5671d47; frankenphp-linux-x86_64-gnu=cfc17817a29895891eff5f564492dd614ed185275d25783b0f8045bc2e3f8ce2; frankenphp-linux-x86_64-mimalloc=8c20f12bd8177016b5e3592ba81eb3ba9e5ce217c674f078b7dcf186f987c784; frankenphp-linux-aarch64=a4973cdf7f23b84e8ab509638952d4ed364425967e9cdee4a1abcf2d956239c9; ... | SHA-256 of every release asset of Version, from the digests GitHub publishes. A download that does not match is deleted, never run. |
| AdminAddress | auto | Caddy's admin API, which stop and graceful use. auto is a unix socket at var/vc/frankenphp/run/admin.sock (owner-only, no port to clash), or localhost on the HTTP port + 10000 when the installation's path is too long for a socket. Otherwise unix/<path> or localhost:<port>. |
| ConfigFile | var/vc/frankenphp/run/Caddyfile | The generated configuration, the pid file and the server's console output. |
| PidFile | var/vc/frankenphp/run/server.pid | |
| LogFile | var/vc/frankenphp/run/console.log | |
| LogDir | (empty) | Access and error log: access.log and error.log in LogDir (empty = var/vc/frankenphp/log), or the paths given. A directory of its own because Caddy writes JSON: switching engines does not leave one file in two formats. LogSettings Enabled and FileMode apply. |
| AccessLog | (empty) | |
| ErrorLog | (empty) | |
| Compression | zstd br gzip | Compress responses for clients that ask: the codecs to offer, in order of preference, from zstd, br and gzip; or disabled. Caddy compresses nothing unless told to, and skips small bodies and types that do not shrink (images, archives). Without it the front page went out at 95.7 KB here; gzipped it is about 10 KB. |
| SiteInclude | (empty) | A Caddyfile fragment imported into every site block, for directives of your own (headers, redirects, extra routes). The generated file is rewritten on every start and must not be edited. |
| PHPIniFile | (empty) | A php.ini for the server. The binary reads none of the machine's own, so without one PHP runs on its compiled-in defaults plus the options below. |
| IniOptions[] | display_errors=Off; log_errors=On; memory_limit=512M; opcache.enable=1; post_max_size=64M; upload_max_filesize=32M | Interpreter settings, after [PHPSettings] IniOptions[] (a later key wins). These stand in for the php.ini the binary does not read: without them PHP shows errors to visitors and stops at 128M. The opcode cache needs no revalidate_freq=0 here -- every request has its own request time. |
| ExtraOptions[] | (empty array) | Extra options for `frankenphp run`, appended verbatim. |
See also
Generated example: velocity.ini [FrankenPHPSettings]
Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this group. The descriptions are the comment lines of settings/velocity.ini.
Contributors
- Graham Brookins Updated
Comments
Add a comment