I'm running Lychee on my server (photo hosting software). Everything works fine except the image upload. I get the following error:
PHP message: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0" while reading response header from upstream, client: 123.123.12.12, server: example.com, request: "POST /php/index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "example.com", referrer: "example.com/"
2017/07/27 08:03:51 [error] 10711#10711: *183 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/) in Unknown on line 0
The error still exists after adding "/tmp" to "open_basedir"
open_basedir = "/var/www/:/tmp/"
And adding a tmp dir with www-http rights in /tmp
upload_tmp_dir = /tmp/http-upload