I'm getting an upload_tmp_dir error on the php that I have installed. How do I fix this error?

Created:

2017-06-05 05:15:12 UTC

Modified:

2017-06-05 06:08:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

I'm getting an upload_tmp_dir error on the php that I have installed. How do I fix this error?

Applicable to:

  • Plesk 9.x for Linux/Unix
  • Plesk 8.x for Linux/Unix

Resolution

This can be done by adding:

upload_tmp_dir /tmp

directive into the PHP configuration file /etc/php.ini
Alternatively it is possible to specify upload_tmp_dir for one domain only. To do that add the following line into the domain's vhost.conf file:
<Directory /path/to/vhosts/domain.com/httpdocs> php_admin_value upload_tmp_dir /tmp</Directory>

Once the changes have been made run websrvmng -a -v utility for the changes to take effect.

Have more questions? Submit a request
Please sign in to leave a comment.