Mobile app version of vmapp.org
Login or Join
Merenda212

: Best practice for temp directory used by MediaWiki? This question appears to be related to File system permission for MediaWiki uploads? Tightening permissions has lead to "Error creating thumbnail"

@Merenda212

Posted in: #Apache #BestPractices #Mediawiki

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Merenda212

1 Comments

Sorted by latest first Latest Oldest Best

 

@Candy875

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

$wgTmpDirectory = false;

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme