report/security/report security check preventexecpath: Difference between revisions
From MoodleDocs
Dan Marsden (talk | contribs) m (formatting) |
m (Added link to spanish translation of page) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
Some administration options allow setting the path to executable files on the web server such as du, aspell, ghostscript and others. This can potentially cause a security risk. You can prevent administrators from changing these paths by adding the following setting to your config.php file: | |||
Some administration options allow setting the path to executable files on the web server such as du, aspell, ghostscript and others. This can potentially cause a security risk. You can prevent | |||
<code php> | <code php> | ||
Line 11: | Line 10: | ||
$CFG->aspellpath = 'PATH'; | $CFG->aspellpath = 'PATH'; | ||
</code> | </code> | ||
[[es:report/security/report security check preventexecpath]] |
Latest revision as of 14:08, 14 September 2017
Some administration options allow setting the path to executable files on the web server such as du, aspell, ghostscript and others. This can potentially cause a security risk. You can prevent administrators from changing these paths by adding the following setting to your config.php file:
$CFG->preventexecpath = true;
You should also explicitly set the relevant paths in your config.php file such as:
$CFG->pathtodu = 'PATH';
$CFG->pathtounoconv = 'PATH';
$CFG->aspellpath = 'PATH';