I recently installed multiple php versions using popular Ondrei’s repo (https://launchpad.net/~ondrej) and now whenever I want to change PHP execution mode from FCGId to CGI or mod_php, Virtualmin just “applies” the settings and when I go to Website Options again, I still see FCGId as the selected execution mode, but in fact the execution mode changes, because I see apache config updating and phpinfo page indicates the change as well. In other words, what Virtualmin displays in Website Options is inacurate, because it always indicates the site is in FCGId mode, even when in fact it actually works in mod_php or CGI mode. This has one nasty side effect - I can not switch to FCGId again, so I’m stuck between CGI and mod_php. All I can do now is to check mod_php, then check FCGId again and apply settings, but Virtualmin tells me no changes have been made and that’s how I’m stuck…
I’m on Ubuntu 16.04, and I was using the default PHP version provided by Ubuntu (7.0.x) before the upgrade. After adding Ondrei’s repo, I have 5.6, 7.0, 7.1, 7.2. I also replaced 7.0 with the one provided from Ondrei’s repo, so I don’t use Ubuntu’s version of PHP anymore. Everything runs clean there is no apparent errors in the system, like apt did not freak out with dependencies, there are no broken packages reported in the system, it was a smooth and easy change. I can change php versions without problems, but I can’t change execution mode.
What I have tried so far:
- run Virtualmin’s config check - in the output 4 different PHP versions are reported, no errors.
- checked /var/webmin/miniserv.error, no errors
- created a new server template and set mod_php as the default execution mode - creating new site with this template worked and the site was in mod_php mode. Website Options does indicate it is in mod_php as well, but once I change to FCGId, Virtualmin will always display this site is in FCGId mode, so when I change it to mod_php again, the UI does not reflect it and I’m stuck.
Basically looks like something is confusing Vitrtualmin.
Weird behavior I’m observing is the output of
virtualmin list-php-versions command:
root@ip-10-0-0-120:~# virtualmin list-php-versions
Clearly there is some inconsistency there, maybe this is causing issues? I can’t figure out where that 7.0 version with no corresponding path comes from.
Any help will be highly appreciated.