Tune permissions on /var/www/html/storage/ so your web server user has read/write rights.
Try this, if the problems goes away, tune permissions more accurately (755 for appropriate user/group):
chmod -R 777 /var/www/html/storage/
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Can someone shed light on why these errors occur in an API-based project? The project serves an Angular frontend and a mobile app. For authentication I'm using Sactum.
fopen(/var/www/html/storage/framework/cache/data/85/91/859101d82a88b25b9d26729b082dc2b6022ccf2d): Failed to open stream: No such file or directory
fopen(/var/www/html/storage/framework/cache/data/19/82/198290ff4dc4b92182639c6b7ec3ac7e01d95cd6): Failed to open stream: Permission denied
To my understanding these are supposed to occur on blade based projects.
Please or to participate in this conversation.