12:01:40 Create new PHPExcel object
12:01:40 Set document properties
12:01:40 Add some data
12:01:40 Rename worksheet
12:01:40 Set document security
12:01:40 Set sheet security
12:01:40 Write to Excel2007 format

Warning: ZipArchive::close(): Failure to create temporary file: Permission denied in /var/www/tecfood/packages/tecfood/schoolmeals2/backend/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php on line 398

Fatal error: Uncaught PHPExcel_Writer_Exception: Could not close zip file /var/www/tecfood/packages/tecfood/schoolmeals2/backend/vendor/phpoffice/phpexcel/Examples/11documentsecurity.xlsx. in /var/www/tecfood/packages/tecfood/schoolmeals2/backend/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php:399 Stack trace: #0 /var/www/tecfood/packages/tecfood/schoolmeals2/backend/vendor/phpoffice/phpexcel/Examples/11documentsecurity.php(94): PHPExcel_Writer_Excel2007->save('/var/www/tecfoo...') #1 {main} thrown in /var/www/tecfood/packages/tecfood/schoolmeals2/backend/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php on line 399