Topic: Install PHP 5.6 on Rocky Linux 9

A few months ago you offered me help on the Rocky Linux forum to add a new version of PHP to Rocky Linux 8.

Now, due to a problem in the latest Rocky Linux 8 update, I have created a new server with Rocky Linux 9 and it seems that the Remi repository only supports up to version 7.4 of PHP.

I have a very old site written in PHP 5.6 that I would like to be able to get online. Is there a way to add PHP 5.6 to Rocky Linux 9?

I will appreciate your help.

Re: Install PHP 5.6 on Rocky Linux 9

EL-9 have OpenSSL 3 which is only supported by PHP project in Versions >= 8.1

Maintaining this big feature backport in 7.4 and 8.0 is already a huge job
And there are probably more libraries too recent for such an old version

> Is there a way to add PHP 5.6 to Rocky Linux 9?

Not directly

For any version < 8.1, I recommend using EL-8

You still can run php-fpm (any version from 5.6 to 8.3) in a container (using EL-8 as base)

Very old howto in https://developers.redhat.com/blog/2014 … _directory

And of course, planning a compatibility update of your app should be a top priority.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Install PHP 5.6 on Rocky Linux 9

Quickly written sample:
https://git.remirepo.net/cgit/tools/doc … dockerfile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Install PHP 5.6 on Rocky Linux 9

Thank you for your always detailed response.

If I see it somewhat complicated. I'll see if I can better update the code in the files from PHP 5.6 to PHP 7.4 than if I have it added to the server.