CentOS 7 is the oldest currently maintained OS that you can use with Virtualmin and it has PHP 5.4.16 in the OS repos. There are no maintained 5.6.x versions, however, so if your application doesn’t work on the CentOS 5.4.16 version, you’ll need to update it to work on a newer distribution with some maintained PHP 7 version.
It is not safe to run an unmaintained version of PHP; I don’t know of anyone maintaining PHP 5.6.x packages of PHP.
I usually strong discourage deploying new systems with CentOS 7 currently, since it will reach EOL in a few months, but in your case, it may be a reasonable stop-gap until you can upgrade your apps to work with a current version of PHP.
Will anybody “SUPPORT” it? No. Again, it was end of life 4 years go. It’s not a secure version of php and should not be used. Nobody supports it. You can run it on pretty much anything, but if you start having problems and get security breeches, you’re on your own.
We absolutely do not support unmaintained PHP versions, regardless of whether it is GPL or Pro. It is not safe to run unmaintained PHP versions. Virtualmin will work with whatever PHP version you throw at it. But, you should not throw unmaintained PHP versions at it.
Ubuntu has not had PHP 5 since 14.04 LTS, which reached end of life years ago, and I don’t think you can even get ESM support for it at this point. Xenial (which does have ESM support available for $75/year per server) has PHP 7, so it’s right out.
You need to update your apps to work with a maintained version of PHP. You’re going to spend a lot more effort trying to find some combination of OS and packages that works, only to deploy an immediately exploitable system. Just update your apps and deploy to a modern OS! It’s less work. It’s more secure.
No idea you haven’t said which distro your using but tbf i would follow the advice of others, once you have backed up your sites it takes no time to re install the os and restore the web sites. Or are you using some php that requires some functions that have been removed in later versions of php … if the latter i would get newer version of the php app or recode it
I already told you. The only distribution I know of that we support that has PHP 5 is CentOS 7. If you must use PHP 5, then that’s the only supported configuration I can offer you. CentOS 7 has PHP 5.4.16, and it is maintained by the Red Hat folks, so it is probably reasonably safe to use.
Edit: And, you can only use that until June of 2024, which is when CentOS 7 reaches EOL. It may be that Red Hat will continue to offer paid support for RHEL 7, though, so I guess you could go that route instead. We, however, will end our support for CentOS 7 (and RHEL 7) when their public repos reach EOL. (Though nothing prevents you from continuing to use it. We, of course, do not disable anything on EOL systems, we just stop updating our repos for those systems and remove installer support.)
Of course there’s a way. Nobody ever said there wasn’t.
What part of it is NOT SUPPORTED BY ANYBODY and HAS HAD NO SECURITY UPDATES SINCE NOVEMBER 2018 did you not understand?
Anybody can use it. It works just fine. That has been stated before in this thread.
But when your site gets hacked to ribbons, nobody on this planet is going to do anything at all about it because it is NOT SUPPORTED.
That is what END OF LIFE means - use it at your own risk because NOBODY supports it anymore.
I know people that still use Windows XP. Every time they get hacked to ribbons, they simply reformat and start all over again with the same OS. Why, I have no idea. It’s just the way some folks are.
But it’s very, very, very bad advice to tell someone to use something and show them ways to use it when it is NOT SUPPORTED AT ALL and can lead to almost certain doom.
Once you get to 7.0 and sort out any issues that pop up (if there are any at all) then you can upgrade as you need to step by step to get it where you want it.
Each version took steps to convert things as you move up, so it should be pretty easy to do. You just have to take it one step at a time to be on the safe side.
I was replying to Joe’s accepted answer. Didn’t mean to trigger you
I didn’t read your replies to be honest. I have to read them to understand. I just skipped through them. So I wasn’t aware of your ANYBODYNOBODY. I apologize. I’m sorry if you thought my reply was directed to you in anyway. It wasn’t.
And yes, you rise a valid point. People should avoid PHP 5.6, even PHP 7.0.
But the accepted answer suggest that only way to get PHP 5.6 is by using CentOS 7. I was replying to that.