Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

php7.4 on bookworm

1,543 views
Skip to first unread message

Stefan Begerad

unread,
Jun 26, 2023, 3:20:07 AM6/26/23
to
Dear community,
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?

Any hint is appreciated. Cheers,

Stefan Begerad

Nicolas George

unread,
Jun 26, 2023, 3:50:06 AM6/26/23
to
Stefan Begerad (12023-06-26):
> Somehow my Debian 11 was automagically upgraded to Debian 12 perhaps by the
> hosting company.

The fact that you do not know is deeply concerning.

> 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?

Yes: do not.

PHP 7.4 has reached its end of life one year and a half ago and its end
of life support six months ago.

Regards,

--
Nicolas George

Markus Schönhaber

unread,
Jun 26, 2023, 4:00:06 AM6/26/23
to
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

Steve Sobol

unread,
Jun 26, 2023, 1:10:06 PM6/26/23
to
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.
0 new messages