php only seems to work in "Apache mod_php"

hello -

ever since i upgraded from php5.4 to 5.6 and tried to clean up some previous junk, new virtual-servers seem to function strangely.

here are my steps to reproduce the issue:

  1. create new virtual-server using only the DNS domain enabled? and Apache website enabled? checked

  2. enter /home/, and create a simple php phpinfo(); script.

  3. test to make sure it is working properly.

  4. attempt to change the default(?) Apache mod_php to either:

CGI wrapper (run as virtual server owner)

or to:

FCGId (run as virtual server owner)

  1. now the tiny script just merely downloads and does not execute.

it will go back to executing normally if I [re]select Apache mod_php again.

any thoughts?

EDIT: maybe same issue as

would you bother with CGI when Fast CGI is available?

what is the output of running virtualmin’s recheck configuration function?

also is the pathway to your new php version correct as the system configuration expects?

isnt it the case that if using fast CGI .htaccess becomes unusuable…so php ini files are required and a lot of popular scripts use .htaccess?

perhaps its better to stick with mod_php anyway