ZipArchive::close(): Failure to create temporary file: Permission denied nginx
<p>I would love a good suggestion how to fix the following. 
For a platform I have to create php word documents and it so happens that on the Apache dev environment this code executes perfectly; yet on the nginx platform I keep on receiving the error as the topic suggests: </p>

<pre><code>ZipArchive::close(): Failure to create temporary file: Permission denied
</code></pre>

<p>The build up is pretty simple: </p>

<pre><code>$phpWord = new \PhpOffice\PhpWord\PhpWord();

//code block as in the documentation

$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord,'Word2007');

$objWriter-&gt;save('doorverwijzing_patient_xxxxxxxxxx.docx');
</code></pre>

<p>Where do I change these permissions in the nginx folder structrue to be able to create these documents?</p>