Menu

How to Install PHP 8.5 on Ubuntu 24.04 — and Run Several PHP Versions Side by Side
📰

How to Install PHP 8.5 on Ubuntu 24.04 — and Run Several PHP Versions Side by Side

DEV Community: php·SᕼᗩᕼIᗪ KᗩᖇIᗰI·15 days ago
#T7nWdlxn
#devto#dev#php8#version#article
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.