I would like a good suggestion on how to fix the following. For the platform, I have to create php word documents, and it so happened that in Apache dev this code works fine; but on the nginx platform, I keep getting an error as the topic suggests:
ZipArchive::close(): Failure to create temporary file: Permission denied
Creating is pretty simple:
$phpWord = new \PhpOffice\PhpWord\PhpWord();
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord,'Word2007');
$objWriter->save('doorverwijzing_patient_xxxxxxxxxx.docx');
Where can I change these permissions in the nginx structrue folder to be able to create these documents?
source
share