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?
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)?
Re: How to install php7.4 in Debian 12 (bookworm)?
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?
What's "for testing purposes" anyway? why not test with a supported version?
Re: How to install php7.4 in Debian 12 (bookworm)?
this. I use without problem:
https://tecadmin.net/how-to-install-php-on-debian-12/
https://tecadmin.net/how-to-install-php-on-debian-12/