Almalinux install php54

Can you please give an instruction about how we can install PHP54 in Almalinux version 8

You don’t. PHP 5.4 is dead.

Thank you

I have an application run on php54, I don’t have time to upgrade it to make it work with new PHP version.
i think it’s a good idea that Almalinux supports older versions of PHP.
currently 80% of the websites in the world still running PHP 5

Dude, 80% of the world knows that PHP 5.4 is EOL since 9 (nine) years ago! This time span is huge in IT.

PHP 5.4 is so old that it won’t even build on any modern distro and nobody is crazy enough to maintain so compatibility backports.

  • on AlmaLinux 8 you can choose PHP version 7.4, 8.0 or 8.2
  • on AlmaLinux 9 you can choose PHP version 8.0, 8.1 or 8.2

In “remi” repository more versions and more extensions are available

  • on AlmaLinux 8: 5.6 to 8.3
  • on AlmaLinux 9: 7.4 to 8.3
    which is already totally crazy/insane. See Remi's RPM repository

Perhaps your legacy app can run on 5.6 ? (of course this must be tested)

Really, updating your legacy application must be a priority.

It is possible to run “php-fpm” version 5.4 in a container base in CentOS 7 to isolate it.
See Running PHP FPM in Docker | Red Hat Developer

But again this can only be a temporary solution, especially as EL-7 will be EOL in 1 month

You may be able to run it in a Docker container, but the recommended solution is to upgrade your application to a newer version of PHP.