PHP Warnings (PHP-FPM) and local account settings

SYSTEM INFORMATION
OS type and version AlmaLinux 8.10
Webmin version 2.670

I’m getting a PHP-FPM warning that I want to suppress from the logs. It is for an undefined array used in a redirect script my Xenforo forums use (written originally for PHP 7.2, but now running under 8.1). Here is my Virtualmin > Web Configuration > PHP-FPM configuration page where I thought adding “E_ALL & ~E_WARNING” to the “Expression for error types” would work to suppress the warnings.

II have several accounts on the same server, and my understanding was that PHP-FPM would use these settings rather than a local php.ini file. But is that correct? Is there another setting I need to use? I still want PHP errors written to the logs, but not the warnings.

You look like your using Virtualmin not webmin (the id in the conf), that will work (just tested) just for the domain you set that too.
Webmin settings are overwritten by virtual server settings.
Just noticed you did say virtualmin, posting in webmin confused me :slight_smile:

Sorry, I did post here in Webmin. I’m the Admin so I have access to both by switching between tabs.

Anyway, I did set it in the virtual server (domain) settings in Virtualmin, and it doesn’t seem to be working.

You may need to manually restart the PHP-FPM service in this case, I’m not sure if that’s automatically done on saving changes in that config.