26.06.23, 09:08 +0200, Stefan Begerad:
> Somehow my Debian 11 was automagically upgraded to Debian 12 perhaps by
> the hosting company. However, there is a website running on this Debian
> that requieres php7.4. That website is incompatible with the php version
> Debian 12 is offering and down at the moment.
>
> From the packages it looks like Debian 12 is offering php8.2. Can you
> recommend a best practice how to run php7.4 on a Debian 12 in an
> production environment?
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/
What I also do sometimes is to create a container/VM with desired
software stack and let the "frontend" HTTP server act as a reverse proxy
for the container/VM.
That said: Upgrading the website to use a upstream-supported version of
PHP would probably be really "best practice".
--
Regards
mks