Manual:$wgTmpDirectory

Details
The local filesystem path to a temporary directory. This is not required to be accessible from the web. Used by   to control where temporary files MediaWiki needs are to be written, including:

* UID Generator node and lock files.
 * 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.
 * Upload from URL
 * The directory which a places it's DBA database file. Can be overridden using.
 * Importing uploads from XML dumps

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