If your Magento 2 store displays the error Could not determine temp directory, please specify a cache_dir manually , Magento cannot access the temporary PHP directory.
Fix this by setting sys_temp_dir in php.ini to a directory that your store can access, for example:
sys_temp_dir=/path/to/tmp
Could not determine temp directory, please specify a cache_dir manually
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.