ZipArchive::close(): Failure to create temporary file: Permission denied nginx
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: ZipArchive::close(): Failure to create temporary file: Permission denied The build up is pretty simple: $phpWord = new \PhpOffice\PhpWord\PhpWord(); //code block as in the documentation $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord,'Word2007'); $objWriter->save('doorverwijzing_patient_xxxxxxxxxx.docx'); Where