PHP 7.4 to 8.5 · Ubuntu-based Linux

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
$curl -fsSL https://tryphp.dev/install.sh | bash
What this installs
  • php8.5-cli and php8.5-fpm from the ondrej/php PPA
  • Composer, checked against its SHA-384 checksum
  • 8.5 becomes the default php; other versions stay
  • 16 extensions
    bcmathcurlgdigbinaryimagickintlmbstringmemcachedmysqlpcovpgsqlredissqlite3xdebugxmlzip