This question appears to be related to File system permission for MediaWiki uploads? Tightening permissions has lead to Error creating thumbnail messages:MediaWiki has a page on the temp directory at Manual:$wgTmpDirectory, but the manual does not discuss it in a security context.Here's our current setting:$ sudo grep Tmp /var/www/html/w/LocalSettings.php$wgTmpDirectory     = {$wgUploadDirectory}/tmp;Our /etc/php.ini also has a setting for upload_tmp_dir, but its not clear to me why MediaWiki is not using it. I'm guessing it has something to do with security, but again, the MediaWiki manual does not discuss it.What is the best practice for setting the temp directory for MediaWiki?
Best practice for temp directory used by MediaWiki?
apache;mediawiki;best practices