OS Version CentOS 8.2.2004 Server Core
Webmin version 1.960
Usermin version 1.810
Virtualmin version 6.13
Maybe you can sticky this because many ask about this all the time and I was about to as well, but found it in the documentation pages:
For CentOS
1
dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm && dnf clean all2
dnf -y install php74-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd}
Result PHP 7.4.12:
This will install the packages from Remi (I have no clue about what Remi is and why it is reliable, but that may be another discussion, I am rather new here and don’t really get why use something other than the original Virtualmin sources, nor why the Virtualmin people don’t release this or refer you to PHP.net… )
In the linked documentation page you have more info about other versions, setting up multiple versions and for other OS. I have not tested any of that.
/Richard