Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to install php7.4 in Debian 12 (bookworm)?

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
Dion
Posts: 1
Joined: 2023-10-18 10:22

How to install php7.4 in Debian 12 (bookworm)?

#1 Post by Dion »

Bookworm comes with PHP 8.2. For testing purposes, I tried to install PHP7.4 on a fresh install of Bookworm. However, 'sudo apt install php7.4' results in the error:

Package php7.4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php7.4' has no installation candidate

How to install PHP7.4?

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: How to install php7.4 in Debian 12 (bookworm)?

#2 Post by reinob »

If you must, use docker or some other sandbox. PHP7.4 is not included in bookworm, so you'd have to add extra non-debian repositories, potentially making a mess of your installation.

What's "for testing purposes" anyway? why not test with a supported version?

User avatar
nooblinx
Posts: 35
Joined: 2023-02-03 20:43
Has thanked: 1 time
Been thanked: 1 time

Re: How to install php7.4 in Debian 12 (bookworm)?

#3 Post by nooblinx »


Post Reply