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

astro_369's avatar

deploying laravel app in nginx server throws error.....

#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/...', 133, Array)

0 likes
3 replies
smeunus's avatar

Maybe some cache issue. Try php artisan cache:clear before deploy. After deployment recreate the cache.

1 like
Tray2's avatar
Tray2
Best Answer
Level 73

I would take a look at the file and directory permissions/owner. If the diretory is not writable then you can't do file_put_contents.

2 likes
astro_369's avatar

Thanks ... it was all about permissions issues....

Please or to participate in this conversation.