Topic: 5.4.16 in EL7

I have one legacy application that requires PHP 5.4 on CentOS 7 and I'd like to use a Docker container to isolate.  I've spent a lot of time trying to get this done on my own, and would really appreciate some help on getting this done.

Re: 5.4.16 in EL7

1/ CentOS 7 is 10 years old, and very close to its end of life in ~10 weeks

2/ PHP 5.4 has reached its end of life 9 years ago...

3/ Official packages

CentOS has PHP 5.4.16 with critical security fixes

4/ Remi's repository

PHP 5.4.45 is available in the repository

https://blog.remirepo.net/post/2015/10/ … .4-is-dead

While PHP 5.6+ has backports for all security issues, 5.4 only has backports for critical ones

For proper repository configuration and usage, follow the wizard instructions:
https://rpms.remirepo.net/wizard/


In all cases, I heartily recommends upgrading to supported versions, including fixing your legacy app.
You are years late

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: 5.4.16 in EL7

Yes, I realize all of the security concerns and EOL, but I need to get a Docker container setup as a temporary solution.  It doesn't really matter if it is CentOS 7.

Can you provide any further insight as to how I can accomplish this?

Re: 5.4.16 in EL7

Sorry, but I'm not a docker expert


Perhaps this old article may help
https://developers.redhat.com/blog/2014 … -in-docker

Especially as it allows tu only run php-fpm in the container and use it on a modern distro

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