Manual:$wgTmpDirectory/cs

Podrobnosti
Cesta místního souborového systému k dočasnému adresáři. Toto je nutné k zápisu. Neměl by být přístupný z webu, zkuste ho tedy umístit mimo kořen dokumentu (doporučeno) nebo alespoň zakázat jakýkoli přístup z webu přes .htaccess nebo konfiguraci webového serveru. Přístup k souborům z této složky z webu může představovat bezpečnostní riziko.

$wgTmpDirectory používá  k ovládání, kam MediaWiki zapisuje dočasné soubory, včetně:

Can be overridden using.
 * Old and new tempfiles for external executable based external diff engines configured by
 * - used for chunked uploading, some transformations, and various parts of the file backend code
 * UID Generator node and lock files.
 * Upload from URL
 * The directory in which a CACHE_DBA cache places its DBA database file.
 * Importing uploads from XML dumps
 * - used for SVG transformation

Common pitfalls
If you are getting this error, an incorrect setting for $wgTmpDirectory often is the cause:

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.335721450,/tmp/l10n_cache-en.cdb): Operation not permitted in /.../vendor/wikimedia/cdb/src/Writer/DBA.php on line 59

Fatal exception of type MWException: Warning: dba_close: supplied resource is not a valid DBA identifier resource in /.../vendor/wikimedia/cdb/src/Writer/DBA.php on line 54

Fatal error: Uncaught Cdb\Exception: Unable to move the new CDB file into place. in /.../vendor/wikimedia/cdb/src/Writer/DBA.php:60

The solution is to set $wgTmpDirectory to a folder, which actually is writable by the webserver user.

Sometimes it is useful to have separate directories for the web server and CLI user, if they require different permissions. For example:

See for more information!

Usage in unsupported MediaWiki versions
The path to the temporary directory. When using CACHE_DBA as your, this allows you to select which directory is used.