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.
What is the output of these commands – this will show what repos are there, along with listing any sethandler lines which could be causing some trouble:
ls /etc/yum.repos.d/
find /etc/httpd -type f | xargs grep -i sethandler
Hmm, it looks like there’s a number of non-standard repos enabled… I suspect that’s why you’re seeing the issue, though the typical cause for that, a “SetHandler” line, doesn’t appear to be the issue in this case.
You may want to try and see if using a different PHP Execution Mode helps – you can change that in Server Configuration -> Website Options.
There’s actually more third party repos enabled on your server than I’ve ever seen before
I count at least 12.
Those remi repos don’t come with Virtualmin, and we recommend against those.
You could check by running “rpm -qa | grep php” – however, if any of the PHP versions installed came from one of those third party repos, that’s likely the issue.
Are you perhaps using a VPS? If you have a VPS image there built by someone else, that could explain how those got there.
FYI.
in remi.repo for example you should have the right versions and such enabled=1 or even when not enabled=0
Also other repos you should enable and update and other conflicting has to be disable also for updates only those wich are in use if all in use then be sure you stay with problems!
Not saying this helps or even that i know how to solve. ;
With the Remi repos you have to do more in settings / configs manually for having those working as expected.
Before only one version of php fpm working is / was possible in virtualmin. also important.
The newer should support more fpm i don’t know if this works while in bugs / issues you can readr about that.
Still then the Remi combo is not tested i suppose . https://www.virtualmin.com/node/55788
So we only use one PHP FPM the 5.6 remi repo while this one is mostly and quicker up to date for older (to old) php version very important.
( having this working good was a lot of websearch and pa… in the as… for that time i installed) Updates we don’t have trouble with PHP sofar running over 1 year now
The php 5.4 in virtualmin hmmmmmmmmmmmmmmmmmm
My text is for info only hoping you are taking care of conflicts. ?