After setting up new site in virtualmin, PHP file get downloaded instead of getting executed.
To fix the problem, edit file
vi /etc/httpd/conf.d/php.conf
Find
SetHandler application/x-httpd-php
Replace with
AddHandler php7-script .php
Restart apache
service httpd restart
Leave a Reply