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

php 7.4 and bookworm

422 views
Skip to first unread message

John Covici

unread,
Jun 28, 2023, 5:00:07 AM6/28/23
to
Hi. So, I want to upgrade to bookworm, but I have an application
which needs php 7.4 and I guess they are not yet ready to fix. So,
how can I keep that version, even if its just for that app?

Thanks in advance for any suggestions.

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici wb2una
cov...@ccs.covici.com

basti

unread,
Jun 28, 2023, 5:40:06 AM6/28/23
to
Hello,

you can hold the packages or you can use https://deb.sury.org/

Andy Smith

unread,
Jun 28, 2023, 5:50:07 AM6/28/23
to
Hi,

On Wed, Jun 28, 2023 at 04:46:24AM -0400, John Covici wrote:
> Hi. So, I want to upgrade to bookworm, but I have an application
> which needs php 7.4 and I guess they are not yet ready to fix. So,
> how can I keep that version, even if its just for that app?

In <43ff5524-4d41-b570...@list-post.mks-mail.de>
Markus Schönhaber mentioned the various packaged versions of P{HP
maintained by Ondřej Surý at https://sury.org/

https://lists.debian.org/debian-user/2023/06/msg00962.html

I haven't used them myself but they have a good reputation and in
the absence of upstream PHP providing that, are probably the best
you'll get.

Cheers,
Andy

--
https://bitfolk.com/ -- No-nonsense VPS hosting

Greg Wooledge

unread,
Jun 28, 2023, 7:10:06 AM6/28/23
to
On Wed, Jun 28, 2023 at 04:46:24AM -0400, John Covici wrote:
> Hi. So, I want to upgrade to bookworm, but I have an application
> which needs php 7.4 and I guess they are not yet ready to fix. So,
> how can I keep that version, even if its just for that app?

In previous releases, whenever I've upgraded a machine that runs PHP,
the upgraded system has automatically continued using the old PHP
version. Getting it to use the *new* version is what requires actual
steps to be taken.

I can't promise it's the same for bookworm (I haven't done that upgrade
on a PHP system yet), but it has been true in the past.

John Covici

unread,
Jun 28, 2023, 12:00:06 PM6/28/23
to
Thanks everyone. I will do the upgrade and see if it retains php 7.4.

John Covici

unread,
Jun 28, 2023, 4:10:05 PM6/28/23
to
OK, so php was upgraded from 7.4 to 8.2 -- how to get 7.4 back after
upgrading to bookworm? How would I use https://deb.sury.org ?

Thanks.

John Covici

unread,
Jun 28, 2023, 4:10:06 PM6/28/23
to
After upgrading to bookworm I get the following error:
odbcinst: SQLInstallDriverEx failed with Unable to find component
name.

What does this mean -- google could not even find this error.

Thanks in advance for any suggestions.

On Wed, 28 Jun 2023 04:57:42 -0400,
basti wrote:
>

basti

unread,
Jun 28, 2023, 4:20:07 PM6/28/23
to
https://packages.sury.org/php/README.txt

after add the repo install your needed php7.4-* packages
if you use mod-php in apache you can use only one php version.
if you use php-fpm you can run multiple php version at the same time.
test your app with a phpinfo side.
but that was not the topic

Am 28.06.23 um 22:01 schrieb John Covici:

Greg Wooledge

unread,
Jun 28, 2023, 4:30:05 PM6/28/23
to
On Wed, Jun 28, 2023 at 10:15:14PM +0200, basti wrote:
> if you use mod-php in apache you can use only one php version.
> if you use php-fpm you can run multiple php version at the same time.

Ah, that explains our differing experiences, then.

John Covici

unread,
Jun 28, 2023, 7:20:05 PM6/28/23
to
OK, so I installed the repo, and got php7.4, but there are still lots
of php82 packages installed. Do I have to install php7.4 equivalents
to each package? Any shorthand way to do the whole lot?

On Wed, 28 Jun 2023 04:57:42 -0400,
basti wrote:
>

Greg Wooledge

unread,
Jun 28, 2023, 7:20:05 PM6/28/23
to
On Wed, Jun 28, 2023 at 07:15:05PM -0400, John Covici wrote:
> OK, so I installed the repo, and got php7.4, but there are still lots
> of php82 packages installed. Do I have to install php7.4 equivalents
> to each package? Any shorthand way to do the whole lot?

At this point, you need to reveal how you are using PHP, and which
packages are installed. Are you using apache, nginx, or some other
web server? Are you using php-fpm, or some kind of "modular" PHP
specific to a particular web server? Or something else?

John Covici

unread,
Jun 29, 2023, 1:30:07 AM6/29/23
to
Mostly its with apache and the freepbx application which uses a lot of
php applications which were originally installed with php 7.4 and then
Debian upgraded all of them to php 8.2. I have already changed the
php.default to 7.4 and changed the mods-enabled in apache to php7.4
rather than 8.2.
0 new messages