dnf module enable php:7.4
Last metadata expiration check: 2:17:55 ago on Tue 23 Nov 2021 10:48:04 PM GMT.
Dependencies resolved.
The operation would result in switching of module ‘php’ stream ‘7.2’ to stream ‘7.4’
Error: It is not possible to switch enabled streams of a module unless explicitly enabled via configuration option module_stream_switch.
It is recommended to rather remove all installed content from the module, and reset the module using ‘dnf module reset <module_name>’ command. After you reset the module, you can install the other stream.
SOLUTION:
#
dnf module reset php
dnf module install php:7.4
dnf update