single site-wide php.ini with fcgid?

I have a few Drupal sites on a VPS, Virtualmin makes my life easier but is barely used by clients. I prefer to use a single php configuration, rather than needing to tweak every site individually. Can I use fcgid and still have php load a single, server-wide php.ini?


It’s unfortunately not possible to have a single php.ini file when using FCGID. The only way to do that would be when using mod_php.

However, it is possible to make updates for all the php.ini files on your system at once. For example, let’s say that you wanted to set the parameter “cgi.fix_pathinfo” to “0” in all the php.ini files on your system. You can do that by running this command as root on your system:

virtualmin modify-php-ini --all-domains --ini-name cgi.fix_pathinfo --ini-value 0