Skip to main content

Trying to make PHP 5.6 available using an EasyApache 4 custom profile, but it says it will not install unsupported packages?

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! Unfortunately, no, there's not going to be a way to force that to work even with a custom profile. The best option would be to move the accounts that need the older version to a machine running the CloudLinux operating system. That will allow them to use the older versions in a more secure fashion with CageFS.
    0
  • SimpleSonic
    I agree with @cPRex, if you need to use older PHP versions/modules, using CloudLinux is the best way to go.
    0
  • Kadence
    Hey there! Unfortunately, no, there's not going to be a way to force that to work even with a custom profile. The best option would be to move the accounts that need the older version to a machine running the CloudLinux operating system. That will allow them to use the older versions in a more secure fashion with CageFS.

    Thank you. What about CentOS 7? This article says PHP 5.6 is available on CentOS 7.
    0
  • SimpleSonic
    Thank you. What about CentOS 7? This article says PHP 5.6 is available on CentOS 7.
    0
  • cPRex Jurassic Moderator
    Also, CentOS 7 has a very short life at this point, so it doesn't make sense to me to spend time building a new system on an operating system with limited support.
    0
  • KevAtkinson
    I had a site running some really old PHP code and was struggling after a few years away from programming to adapt it to PHP 8.x I started a ChatGPT session, and pasted in the old code asking AI to re-write my code for PHP 8. As if by magic it re-wrote the code and even made it more efficient. I copied and pasted that back into a dev account running PHP 8.1 and the code worked a treat. Actually blew my mind!
    0
  • bellwood
    If this is still a concern, consider using rector:
    0

Please sign in to leave a comment.