How install a older version of php in parrot?

– php7.4 has no installation candidate –


  • Parrot version in use: 6.0

  • Kernel version 6.5.0-13parrot1-amd64

sudo apt install php7.4
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package php7.4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘php7.4’ has no installation candidate

Hi, guys!
Unfortunaly my first interaction with the forum is a problem who i need help :frowning:

I seached a lot of types how i can do the downgrade and install the php 7.4 on parrot or debian. But nothing works.

Someone can help me in this case?

Thank you in advance

I’m having a similar issue, but with php5 and Parrot 6 (lory)

This is probably a noob question:

  • Do I need to add a particular repository?
  • Do I have to compile this from source?

Any guidance would be greatly appreciated.

Background.

I understand that support for PHP 5 has been discontinued since 10 Jan 2019, but I need to install php 5.x due to its different srand behavior (the script I’m looking at only works with v5.x :frowning: )

Most of the instructions online seem to talk about adding the SURY repository https://sury.org/
But does not appear to cater for “lory”, although it should work for Debian 12 (i.e. “bookworm”).

Hi, David! o/

I am searching how to do a downgrade, if i find i will share with you :wink: