- One binary
- PHP Worker
- HTTP/3 + gRPC
- Auto TLS
Volucer
An application server in one binary, for PHP, Python, Ruby and more. Serve resident workers or any FastCGI server — php-cgi, php-fpm, a WSGI or Rack process — with static files, TLS and certificate issuance built in.
Ready for Linux, macOS, Windows and Docker.
A capable server
Meet Volucer
Volucer serves HTTP/1.1, HTTP/2 and HTTP/3 over QUIC, plus FastCGI and gRPC, and handles routing, TLS with automatic ACME certificates, static assets and process supervision. Access logs, rate limits, Prometheus metrics, distributed tracing and graceful configuration reloads help to see and manage production traffic.
WebSocket connections can be transparently proxied to upstream backends or owned by Volucer, which dispatches open, message and close events to worker applications.
Worker applications can also serve gRPC and use shared key-value storage, locks and job queues. FastCGI and upstream backends can reach granted services through the RPC interface.
Built for production
Features for PHP Applications
Avoid repeated startup
A persistent PHP worker boots the application once and keeps serving requests, so the framework startup cost is not paid on every request.
Managed php-cgi pool
Volucer supervises multiple php-cgi processes and
provides each request with a fresh PHP request context, including uploads and
superglobals.
Existing php-fpm pools
Volucer connects to an existing php-fpm pool through
its socket or TCP listener. Pool management remains with php-fpm, while Volucer
handles incoming traffic.
Works with existing PHP
Volucer uses the existing PHP binary, extensions and php.ini. It runs alongside PHP and does not embed it.
Static files and HTTPS included
Static assets are served directly, with compression and caching. Certificates can be provided manually or requested automatically by Volucer.
RPC Services
Applications can use shared key-value storage, locks and jobs through RPC services. Logs, Prometheus metrics and distributed tracing are also available.
[server]
http = "0.0.0.0:8080"
document_root = "public"
front_controller = "index.php"
[backends.app]
# "worker", "spawn_cgi", "external", "attach", "upstream"
kind = "worker"
command = "php worker.php"
workers = 8
volucer check # names every listener, backend and PHP binary
volucer serve
Configuration
Set up Volucer from a single file
Define a PHP backend and document root in volucer.toml, check the
configuration, and start the server. Worker mode requires a small worker.php entry point; the
other backend kinds work with existing PHP applications.
- Configuration is checked before the server starts
- Configuration errors are caught early
- Serve several sites from one process
- Reload configuration without dropping connections
Measured, not claimed
Benchmark results
All servers ran the same routes: C1 — Echo (/echo), C2 — Home (/), C6 — API Items (/api/items-fast) and C5 — HTML Items (/items-fast). Each pair of charts below is one route.
A constant handler through the full HTTP path.
The landing page, rendered by a template, with no database access.
The ORM API request without row hydration: rows fetched as plain data, serialized as JSON.
The ORM page without row hydration: rows fetched as plain data, rendered by a template.
Median of 5 10s runs, interleaved on a 12-vcore VM with 7,910 MB RAM, up to 32 PHP processes. OPcache and the JIT are enabled. Volucer is drawn twice because it is the one server with a choice of deployment shape: volucer attach boots once and forks its workers, volucer worker boots each worker itself. Everything else — the PHP build, the application, the process count on the bar — is the same, so the step between those two bars is the cost of the fork rather than a different program. Each bar shows the load and process count at which it was measured, except FrankenPHP's, which shows worker threads. Memory is the proportional set size of the full process tree, sampled after the concurrency-96 pass, at the same process count as the chart beside it.
Install
Install Volucer
Volucer is distributed as a single binary. Prebuilt releases need no Rust toolchain and no build step. The PHP worker SDK requires PHP 8.2 or newer.
curl -fsSL https://github.com/sailantis/volucer/releases/latest/download/install.sh | sh
Installs to ~/.local/bin and adds it to
PATH if needed. Set VOLUCER_MODIFY_PATH=0 to leave the shell
configuration unchanged.
powershell -ExecutionPolicy Bypass -c "irm https://github.com/sailantis/volucer/releases/latest/download/install.ps1 | iex"
Installs to %LOCALAPPDATA%\volucer\bin and
adds it to the user PATH. Open a new shell for the change to take effect.
docker pull ghcr.io/sailantis/volucer:latest
docker run --rm -p 8080:8080 -p 9080:9080 \
-v "$PWD/volucer.toml:/etc/volucer/volucer.toml:ro" \
-v "$PWD/public:/srv/public:ro" \
ghcr.io/sailantis/volucer:latest
The default image is musl-based and runs on scratch.
Use :latest-glibc for a Debian-based image, or pin a version such as
0.6.0. The image contains the Volucer binary only, not PHP. A
php-fpm socket or another FastCGI server reachable from the container works
without a custom image.
To run php worker.php inside the container, use an
Ubuntu base and install PHP from its packages. Copy the -glibc binary into the image
and add extensions as php8.5-* packages.
FROM ubuntu:26.04
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
php8.5-cli php8.5-mbstring php8.5-curl php8.5-xml \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/sailantis/volucer:0.6.0-glibc /usr/local/bin/volucer /usr/local/bin/volucer
WORKDIR /srv/app
ENTRYPOINT ["/usr/local/bin/volucer"]
CMD ["serve", "--config", "/etc/volucer/volucer.toml"]
[server]
http = "0.0.0.0:8080"
[backends.app]
kind = "worker"
command = "php worker.php"
working_dir = "/srv/app"
docker build -t my-app-volucer .
docker run --rm -p 8080:8080 \
-v "$PWD/volucer.toml:/etc/volucer/volucer.toml:ro" \
-v "$PWD:/srv/app:ro" \
my-app-volucer
The php8.5-cli package includes
pcntl, posix and sockets, so no additional PHP extension
packages are needed for the attach backend
(Volucer\Supervisor::serve() forks). Add php8.5-cgi for a
spawn_cgi backend, and any other extension as its own php8.5-* package.
Ubuntu 24.04 ships PHP 8.3; add packages.sury.org/php if you want to use on an older distribution or different PHP versions.
This container runs as root, which suits the read-only bind mount above; copy the
application into the image instead and add USER www-data if it should not run as root.
cargo install --path crates/volucer
Run this from a repository checkout. Requires a Rust toolchain.
To install manually, download an archive from the releases page.
Configuration-free
Quick start
Command-line examples with no configuration file.
Use volucer check with the same options to validate a setup before serving.
# PHP-CGI on PATH
volucer serve --listen 127.0.0.1:8080 --root public --php-cgi
# PHP-CGI at an explicit path (Windows)
volucer serve --listen 127.0.0.1:8080 --root public --php-cgi=C:\php-8.3.36\php-cgi.exe
# Worker mode
volucer serve --listen 127.0.0.1:8080 --root public --worker "php worker.php" --workers=5
# Any FastCGI server
volucer serve --listen 127.0.0.1:8080 --root public --fcgi "python fcgi_app.py --bind {address}" --workers=2 --concurrency=4