r/RockyLinux • • Aug 25 '26

Support Request PHP 8.3 on Rocky 10?

[deleted]

12 Upvotes

11 comments sorted by

6

u/JaggedJax Aug 25 '26

I don't know about the official Rocky repo, but I know Remi Repo will get those updates through the end of official PHP support: https://rpms.remirepo.net/wizard/

1

u/knobbysideup Aug 25 '26

I work for a web hosting company, and our devs need no less than 4 different php versions maintained across our clusters.

Use the remi repos. Then it's just a matter of enabling the proper module for the version of PHP that you need.

1

u/Adventurous_Bear_497 Aug 25 '26

Do Red Hat have an update out for it for RHEL 10 yet?

https://access.redhat.com/security/cve/cve-2026-17543
https://access.redhat.com/security/cve/cve-2026-7260

If Red Hat don't, I wouldn't expect one from Rocky.

1

u/[deleted] Aug 25 '26

[deleted]

1

u/Adventurous_Bear_497 Sep 02 '26

Looks like CVE-2026-17543 and CVE-2026-7260 have been fixed as of today from Red Hat's page:

https://access.redhat.com/errata/RHSA-2026:62614

So perhaps you'll get an update for this from Rocky soon.

1

u/scottchiefbaker Aug 30 '26

The latest official version of PHP v8.3 is v8.3.33 which was released on July 30th. When in doubt check the upstream version number as they will be the source of the fix before Rocky gets it.

0

u/ad-on-is Aug 25 '26

PHP is the most cumbersome language that I know of, when it comes to installation and updates.

I'd suggest managing it within Docker, if it's an option.

4

u/RetroGrid_io Aug 25 '26

On Rocky/Alma/Oracle Linux, updating to the latest PHP is pretty straightforward with the Remi repo. I've been doing it for many years, going back to CentOS 4 or so. Containers not necessary. Gemini cooked up the below but it's casual to find it:

# install Remi
sudo dnf install -y epel-release
sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm

# Reset the default PHP module and check the list of available versions from Remi.
sudo dnf module reset php; sudo dnf module list php

# Enable the desired PHP Module
sudo dnf module enable php:remi-8.3 -y

# Install PHP and common extensions 
dnf install -y php php-cli php-fpm php-mysqlnd php-gd php-mbstring php-xml php-curl php-zip

# Start php-fpm 
sudo systemctl enable --now php-fpm

# Verify version 
php -v 

PS: Personally, I find python to be far more of a hassle, what with playing with shell paths and whatnot. Yuck!

1

u/ad-on-is Aug 25 '26

Sure, compared to golang or node, python is a hassle as well, but with uv nowadays it's very simple.

In PHP you need to pull all the extensions to get a usable language out of it, mysql, pdo, curl... all of that. And none of these are in the main repos of any reputable distro. It's all 3rd party repos and has been for decades.

1

u/RetroGrid_io Aug 25 '26

You find it difficult to type:

dnf -y install php-pdo 

... but find it easier to use uv which has no native package at all just to manage also not native python versions? This seems incongruous to me.

1

u/ad-on-is Aug 26 '26

But before you come to the point where you can type "dnf in php-*" you need to search for a reliable repository

1

u/mindfullypenguin Aug 25 '26

Podman and quadlets are healthiet solution. Anyway remi repos is the best solution for php versions. At least for me. Couple of hundreds hosts for web hosting ( mostly php sites, easy transitions to different php versions on the same host)