On 2023-06-26 00:52, Markus Schönhaber wrote:
I don't know if that somehow qualifies as "best practice" but Ondřej Surý packages different PHP versions for Debian and Ubuntu one can install side-by-side:https://sury.org/
I can vouch for the quality of the Sury packages. I've used them for years.
That said: Upgrading the website to use a upstream-supported version of PHP would probably be really "best practice".
But yes, upgrading is your best bet.