Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Sep 23, 2025, 06:48 AM

Title: How to change the upload tmp directory for a domain in Plesk
Post by: Suhitha on Sep 23, 2025, 06:48 AM
Question: How to change the upload tmp directory for a domain in Plesk


Applicable to:


Question

How to change the temporary directory used for storing temporary files for a domain in Plesk?


Answer


Plesk for Linux

1.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/tmp
Note: 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/09/23/Screenshot_2019-01-15_PHP_Settings_for_example_com_-_Plesk_Onyx_17_8_11.png)


Plesk for Windows

In 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.