and restarted, but nothing changed so I enabled the module back…
I’ve not installed phpMyAdmin, anything else, etc. I see many threads where people are confused about the same thing, but no DEFINITIVE answer from the VirtualMin/WebMin folks!
Same issue here, fresh Virtualmin install, Digital Ocean, Ubuntu 18.04.
Created new Server and uploaded some files, only plain HTML works, PHP files open a DOWNLOAD dialog.
I’ve been hours testing different things without success, would appreciate your help.
I am having the same problem on Ubuntu 16.04. This is a fresh Digital Ocean install.
The only unusual is that I first installed Webmin and then Virtualmin.
Hi Jim,
I ran your command and got the following list. It lists the same entries as your list. Only the order is different, it concerns a different php version and there is a semicolon after each entry. I have no idea how to interpret it.
You need to get rid of all of those extraneous SetHandlers for PHP. Personally, I always disable mod_php entirely (and use fcgid or FPM for execution of PHP applications…this makes the Apache process much smaller).
The SetHandler lines should be disabled during Virtualmin installation, but we have some remaining issues on Ubuntu 18.04. Also, any dist upgrade will cause new config files to be generated and they have to be reconfigured to disable those SetHandler entries again.
In a Virtualmin environment, PHP execution is handled on a per-domain basis. Any system-wide PHP configuration breaks that, and must be disabled.
Joe, can you help with the “disable mod_php entirely” on Debian 9? I am using FPM for all domains and would like to disable, but don’t want to break something.