Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shakogele's avatar

ZipArchive::close(): Failure to create temporary file: No such file or directory'

Hello,

I am using Laravel 5.2 and "maatwebsite/excel": "~2.1.0", plugin to generate Excel Data. on localhost where I have windows OS everything works fine but when I upload application to Debian webserver ( php 5.6 ) I get following error ZipArchive::close(): Failure to create temporary file: No such file or directory' which is logged in laravel.log file.

can anybody suggest something??

thanks

0 likes
1 reply
shakogele's avatar

Problem wan on Server tmp folder was not same as basedir directory at apache2.conf,

 php_admin_value open_basedir /home/admin/web/root/public_html:/home/admin/tmp

1 like

Please or to participate in this conversation.