Plesk PHP and upload_tmp_dir on domain

Needed to set the upload_tmp_dir on a domain in Plesk and by default upload_tmp_dir was returning no value.

URL:

The above URL suggested setting the upload_tmp_dir value via the vhost.conf file:

# File:  /path/to/vhosts/domain.com/conf/vhost.conf
<Directory /path/to/vhosts/domain.com/httpdocs>
php_admin_value upload_tmp_dir /tmp
</Directory>

It then suggests running:

/usr/local/psa/admin/sbin/websrvmng -a -v

Or the following should work too:

/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=domain.com