Articles in this section

How to change the upload tmp directory for a domain in Plesk

Plesk for Windows kb: how-to Plesk for Linux ABT: Group B

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Question

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

Answer

Click on a section to expand

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:

    CONFIG_TEXT: 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.


    Screenshot_2019-01-15_PHP_Settings_for_example_com_-_Plesk_Onyx_17_8_11.png

Click on a section to expand

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_USERPHP_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.
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.