Fedora 33/32 - Install PHP 7.3

Solution 1:

Years ago, I choose to provide as single version only version >= default distribution version. So 7.3, 7.4 and 8.0 for F31, 7.4 and 8.0 for F32+

When Software Collections (SCL) were created, allowing multiple versions, I choose to also provide older versions, so 5.6 to 8.0 for F31+

So, indeed, you have to use the SCL for 7.3 on F32+

For FPM you only have to choose the right socket path, you can even run different versions for different sites/projects

For cli, you have to enable the SCL using

scl enable php73 bash

Or using (I prefer this one)

module load php73

Most packaged CLI app in my repository should work fine (composer, phpunit*...) as I ensure that enabled SCL are used (using "#!/usr/bin/env php" as shebang, while /usr/bin/php is always used in official Fedora packages).

Of course, packages requiring PHP >= 7.4 won't work (but I don't think there is any for now).

An alternative way is to install php73-syspaths which provide the /usr/bin/php command, but this package conflicts with php-cli, so you won't be able to install any packaged app.

You can read My PHP Workstation (quite old, probably need to be refreshed)