You did not provide any module versions so the list above is not helpful.
In general, when it comes to php:
- Use the very same version for the apache module and the CLI version
- You must install the php modules for the required version (e.g. php74-php-xml for php 7.4)
I’d recommend using php 7.4 from the epel repository. There are various guides on the web, such as How To Install PHP 7.4, 7.3 & 7.2 on CentOS 7 - TecAdmin how to get this repository working