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

vi /etc/httpd/conf.d/php.conf

Find


    SetHandler application/x-httpd-php

Replace with

AddHandler php7-script .php

Restart apache

service httpd restart

virtualmin

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *