Home / Blueprints / Laravel Octane + FrankenPHP
Laravel & PHP

Deploy Laravel 11 Octane with FrankenPHP & Redis on Ubuntu LTS

Complete production blueprint for deploying Laravel Octane with FrankenPHP, Caddy, and Redis on Ubuntu LTS with Serverfy zero-downtime releases.

Recommended Cloud Specification Hetzner CPX21 (3 vCPU, 4GB RAM) or DigitalOcean 4GB ($12-$15/mo)
PHP 8.4 CLI FrankenPHP / Caddy Redis 7 MySQL 8 Supervisord Worker

Architectural Highlights

Zero cold starts: requests are handled in-memory by pre-forked worker processes.
Caddy native HTTP/3 and automated Let's Encrypt / Cloudflare SSL integration.
Direct OPcache sharing and 90% lower idle memory than containerized PaaS setups.
Centurion SRE automated monitoring preventing memory leaks across worker cycles.
Environment Template (.env)
OCTANE_SERVER=frankenphp
OCTANE_WORKERS=auto
REDIS_CLIENT=phpredis
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
Deploy Script (deploy.sh)
composer install --no-dev --optimize-autoloader --no-interaction
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan octane:reload

Blueprint FAQ

How does Serverfy handle Octane restarts during zero-downtime deployments?

Serverfy executes atomic symlink release switches and sends a graceful SIGUSR1 reload signal to FrankenPHP/Octane, allowing in-flight requests to complete while new requests hit the new release immediately.

Can I run WebSockets alongside FrankenPHP?

Yes. Serverfy natively orchestrates Laravel Reverb WebSockets as an isolated background daemon with SSL forwarding on port 443.

Deploy This Blueprint in Under 3 Minutes

Connect your VPS, select this blueprint, and deploy with automated SSL, systemd daemons, and zero downtime.