Applicable to:- Plesk for Linux
- Plesk for Windows
QuestionHow to change the temporary directory used for storing temporary files for a domain in Plesk?
Answer Plesk for Linux1.In Plesk, go to Domains > example.com > PHP Settings.
2.Add the directive "upload_tmp_dir" with a required path to the Additional configuration directives field:
upload_tmp_dir = /var/www/vhosts/example.com/httpdocs/tmpNote: If you are a domain owner and do not have the
Additional configuration directives field in
PHP Settings, contact your service provider for assistance.
(https://pix.cobrasoft.org/images/2025/10/17/Screenshot_2019-01-15_PHP_Settings_for_example_com_-_Plesk_Onyx_17_8_11-1.png)
Plesk for WindowsIn Plesk for Windows it's not possible to change "upload_tmp_dir" per domain.
PHP settings which changeable on PHP_INI_USER, PHP_INI_PERDIR or PHP_INI_ALL levels can be customized in Plesk for Windows.
"upload_tmp_dir" setting is changeable on PHP_INI_SYSTEM level and can not be customized.