and also, you shouldn’t allow users to choose fpm mode on the virtual server Website Options if mod_… are not enabled
you could keep it greyed out together with an explanatory string or tooltip
OR
when user chooses the fpm mode, according to the OS, you check the .conf for loaded modules.
If not loaded, you uncomment/add the correct loading strings, graceful restart Apache and so on…
This would be better as a ticket in the issue tracker. Several of these point out bug-like behavior in Virtualmin (and this is why we’re still callin PHP-FPM support beta, so we can collect reports about stuff like this!).