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

johnhenry2525's avatar

file_put_contents(/home/mblood/public_html/storage/framework/sessions/dkNnP820TCXBj3XLGJ7x6GutSLmiIhv0PBpIeWtD): failed to open stream: Disk quota exceeded

failed to open stream: Disk quota exceeded file_put_contents(/home/laravel1/public_html/storage/framework/sessions/dkNnP820TCXBj3XLGJ7x6GutSLmiIhv0PBpIeWtD): failed to open stream: Disk quota exceeded how to fix becuse my website is down

0 likes
1 reply
Cronix's avatar
Cronix
Best Answer
Level 67

You can fix this temporarily by deleting the session files, but the long term solution is to get more space for your server. You've run out. How many session files do you have in there? What else does your site store? Image uploads? Its strange to see a site go over their quota by sessions alone, but it's possible. What is the oldest session file date? Perhaps somethings not working properly as older sessions should be cleared out periodically and automatically by php itself (not laravel)

What I'd do is just delete all session files older than something like 5 days. That shouldn't affect any current users, but that depends on your session settings for how long they last.

find /home/laravel1/public_html/storage/framework/sessions -mtime +5 -type f -delete

That will delete all files in the sessions dir older than 5 days. You can adjust the number of days by changing the "+5".

Please or to participate in this conversation.