ZipArchive :: close (): Failed to create temporary file: Permission denied nginx

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();

//code block as in the documentation

$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?

+4
source share
3 answers

, . . ( ).private/upload/, , .

, - .

+3

, 3 , , , , . ,

+1

, . 0777, .

-3

Source: https://habr.com/ru/post/1662458/


All Articles