Change default php's sys_temp_dir on vesta

  1. Edit these two files. 
    vim /usr/local/vesta/data/templates/web/httpd/default.stpl
    vim /usr/local/vesta/data/templates/web/httpd/default.tpl
  2. Add the line "php_admin_value sys_temp_dir %home%/%user%/tmp" into those files as following:
    <Directory %sdocroot%>
            AllowOverride All
            SSLRequireSSL
            Options +Includes -Indexes +ExecCGI
            php_admin_value open_basedir %sdocroot%:%home%/%user%/tmp
            php_admin_value upload_tmp_dir %home%/%user%/tmp
            php_admin_value session.save_path %home%/%user%/tmp
            php_admin_value sys_temp_dir %home%/%user%/tmp
    </Directory>