I have found the following solution to my “problem”, maybe it will help someone else.
After installing the new PHP version, the old version must be disabled for Apache with
“a2dismode phpx.x” x or x.x means old version number
and the new version must be enabled with
“a2enmode php7.4”
That’ s all!