Install PHP on Linux with one command
Pick a version or a framework preset. The command updates to match, so there's only ever one thing to copy.
Active supportSecurity fixes until 31 Dec 2029 · 3 years 2 months left
PHP 8.5 with the extensions Laravel requires.
FrankenPHP as a systemd service, with a sample site.
$curl -fsSL https://tryphp.dev/install.sh | bash
What this installs
php8.5-cliandphp8.5-fpmfrom the ondrej/php PPA- Composer, checked against its SHA-384 checksum
- 8.5 becomes the default
php; other versions stay - 16 extensions
bcmathcurlgdigbinaryimagickintlmbstringmemcachedmysqlpcovpgsqlredissqlite3xdebugxmlzip
- PHP 8.5 CLI and FPM
- The common extensions
- Composer
- laravel/installer, globally
- FrankenPHP binary
- A frankenphp system user
- systemd service, started on boot
- Sample site with phpinfo()