Edit /etc/httpd/conf.d/php.conf
and replace these three lines:
<FilesMatch .php$> SetHandler application/x-httpd-php </FilesMatch>
with:
AddHandler php5-script .php
Edit /etc/httpd/conf.d/php.conf
and replace these three lines:
<FilesMatch .php$> SetHandler application/x-httpd-php </FilesMatch>
with:
AddHandler php5-script .php
thanx 🙂
To make FCGId work comment out in global conf
/etc/apache2/mods-enabled/php7.0.conf
line SetHandler application/x-httpd-php like
#SetHandler application/x-httpd-php
To enable PHP for default site and prevent code displayed add section above into
/etc/apache2/sites-enabled/000-default.conf with uncommented SetHandler like:
…
#SetHandler application/x-httpd-php
issue following command to fix all sites:
sudo virtualmin fix-domain-permissions –all-domains –subservers
sudo virtualmin modify-web –mode fcgid –all-domains
Lifesaver Jack! Thanks man!