Virtualmin Downloading PHP file
After setting up new site in virtualmin, PHP file get downloaded instead of getting executed.
To fix the problem, edit file
1 |
vi /etc/httpd/conf.d/php.conf |
Find
1 2 3 |
<FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> |
Replace with
1 |
AddHandler php7-script .php |
Restart apache
1 |
service httpd restart |