PHP 8.5 was released in November 2025 and is now the newest supported PHP. Ubuntu 24.04 LTS, though, ships PHP 8.3 in its own archive — so getting PHP 8.5 means adding a package source, and running real applications usually means keeping several PHP versions installed side by side : Magento on 8.5, a Laravel app on 8.4, a legacy site on 8.3.
This guide installs PHP 8.5 and PHP-FPM on Ubuntu 24.04, runs it next to other versions without conflicts, gives each site its own PHP-FPM pool, and keeps everything patched.
In short: add the ppa:ondrej/php repository, install php8.5-fpm plus the extensions your app needs, and create one FPM pool per site pointing at the PHP version that site needs.…