1

This question appears to be related to File system permission for MediaWiki uploads? Tightening permissions has lead to "Error creating thumbnail" messages:

enter image description here

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?

1

Best is not to touch these things and leave them as default. That means according to includes/DefaultSettings.php

$wgTmpDirectory = false;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.