2

I cannot seem to be able to find php7.4 as a package on Amazon Linux 2023.

The latest version is PHP 8.1 but the application I'm using has compatibility issues with the latest version of PHP; hence need to downgrade.

Is it possible for someone to guide me please?

Thank you!

1
  • "I cannot seem to be able to find php7.4" where did you look?
    – symcbean
    Aug 7, 2023 at 12:42

1 Answer 1

1

PHP 7 is EOL. If your application has "compatibility issues", fix them.

4
  • 4
    Easier said than done, when you have a code base with over 14,000 required fix. Apr 19, 2023 at 14:51
  • If your question is "how do I run PHP code safely that requires me to use an EOL version of PHP" the answer is you cant. How you would achieve it technically is another matter, but this is a band-aid that resolves nothing. You could for example try installing the application in a container/vm either on a newer OS level where you manually grab php and set it up from php.net/releases/index.php -- or use an older OS version where it's included as a package. Still, everyone should be aware of the security implications of doing this.
    – pzkpfw
    Apr 20, 2023 at 8:25
  • 1
    As far as I can see, that wasn't OP's question - it's one you made up to answer instead. If they need to deploy a v7.4 application then there's nothing wrong with asking for help to acheive that. Sep 1, 2023 at 16:52
  • @charliefortune yes there is, just like it would be wrong to deploy a production server running ubuntu 16
    – pzkpfw
    Sep 10, 2023 at 9:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .