I am attempting to get the ClamAV AntiVirus plugin operational.
I have disabled setting executable paths (as recommended by the security guidelines/security report) with the following option:
$CFG->preventexecpath = true;
This prevents the ClamAV path from being set in the Plugin (as it should)
However, I have attempted to set the following option:
$CFG->pathtoclam = '/usr/bin/clamscan';
And it does not work, it remains empty. This option DOES work on older Moodle 2.x branches from when AntiVirus was not a plugin but a Security menu item.
How can I set this plugins requirements utilizing the configuration file?