Replace nginx+PHP-FPM with FrankenPHP+Octane#1043
Draft
saeedvaziry wants to merge 13 commits into4.xfrom
Draft
Conversation
Vito now serves itself via FrankenPHP (embedded Caddy + PHP), making it fully independent from system PHP and nginx. System nginx remains for user-managed sites only. Key changes: - Add laravel/octane with FrankenPHP server - Caddyfile template + `vito:generate-caddyfile` command - Install/update scripts use FrankenPHP binary for all PHP operations - Remove system PHP dependency from install (composer uses FrankenPHP) - Docker setup uses FrankenPHP instead of nginx+PHP-FPM - Installation mode detection (VITO_MODE=local|docker|dev) - SSL configuration UI in admin settings (FrankenPHP's built-in ACME) - Local server provider with guard rails - WebSocket port changed to 54332 (sequential with Vito on 54331) - Migration script for existing installations - install-from-pr.sh for testing PR branches on fresh servers Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add PHPDoc type hint for $project to resolve property.notFound error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dpkg --print-architecture returns amd64/arm64, but FrankenPHP releases use x86_64/aarch64 naming. Map the architecture before downloading. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Undoes everything from install/install-from-pr scripts so the server can be reused for testing without reprovisioning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Read from /dev/tty for interactive input, or skip with CONFIRM_RESET=yes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VITO_MODE=local|docker|dev) for mode-specific behaviorcomposer installuses FrankenPHP's bundled PHPNew files
config/octane.php— Octane config with FrankenPHP serverresources/views/ssh/caddyfile.blade.php— Caddyfile templateapp/Console/Commands/GenerateCaddyfileCommand.php— generates Caddyfile from configapp/Actions/Admin/UpdateVitoSSL.php— SSL settings actionresources/js/pages/vito-settings/components/ssl-settings.tsx— SSL config UIapp/ServerProviders/Local.php— local server providerapp/Console/Commands/SetupLocalServerCommand.php— bootstraps local server recordscripts/upgrade-to-frankenphp.sh— migration script for existing installsscripts/install-from-pr.sh— install from PR branch for testingDeleted
docker/nginx.conf— no longer neededdocker/php.ini— no longer neededTest plan
Testing from PR branch
Run on a fresh Ubuntu server:
curl -s https://raw.githubusercontent.com/vitodeploy/vito/feat/frankenphp/scripts/install.sh | VITO_BRANCH=feat/frankenphp V_ADMIN_EMAIL=admin@example.com V_ADMIN_PASSWORD=password bashVerification checklist
/ws/eventsand/ws/terminalwork through Caddy reverse proxydocker compose upworks with FrankenPHP🤖 Generated with Claude Code