Here is the skinny. Brand new VM of Centos7 Minimal. Followed this tutorial except I wasn't upgrading. https://www.virtualmin.com/node/48280
php -v PHP 7.2.17 (cli) (built: Apr 3 2019 10:02:16) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.17, Copyright (c) 1999-2018, by Zend Technologies
Tried with 7.3 BTW with same result.
Order of what I have done. 1.Install Centos 7 minimal 2.Install PHP7 per above link 3.Install perl 4.Download and install virtualmin. 5.Add in domain. Have done a transfer from existing domain as well as created a new one.
Both try and download the PHP file instead of displaying it. PHP.conf is already commented, which was a suggestion of another thread.