What a server needs to run yf, with the version notes. The short list is on Install yf.
| PHP | 8.2 or newer; CI tests 8.4 and 8.5. Composer 2 for a Composer project. |
|---|---|
| PHP extensions |
Always: mbstring intl gd mysqli pdo_mysql sodium zip pcntl.Caches: redis (also serves Valkey), igbinary, memcached.PostgreSQL: pgsql pdo_pgsql. SQLite: pdo_sqlite. |
| MariaDB / MySQL | MariaDB 10.11 or MySQL 8.0. Tables are utf8mb4, see below. |
| PostgreSQL | PostgreSQL 16. The installer sets up MySQL / MariaDB or SQLite; a PostgreSQL project is set up by hand (Manual setup). |
| SQLite | SQLite 3.26+, 3.35+ recommended: one file, no server. Its differences from MySQL are in Manual setup. |
| Cache and queues (optional) | Redis 7 or Valkey 7.2+, Memcached 1.6. |
| Web server | nginx (or Caddy) with PHP-FPM 8.x; Traefik or Envoy as an edge proxy in front of nginx; php -S for development.
Apache is not supported: yf ships no .htaccess. Configs: Web server. |
The installer creates the database and its tables as utf8mb4 (collation utf8mb4_unicode_ci). An index on a utf8mb4 text column takes up
to 4 bytes a character, so InnoDB needs innodb_default_row_format=dynamic for keys up to 3072 bytes. It is the default since
MariaDB 10.2.2 and MySQL 5.7.9; a server that was upgraded from an older version may still set compact. Check it with:
SELECT @@innodb_default_row_format;