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

Pieter-Jan's avatar

laravel bootstrap/cache write permission

I want to start working with laravel once more. But I seem to be running into a issue with the write/read settings of my windows 11 machine.

My standard folder setting of windows 11 is read only.

But when I try to launch the php artisan serve. I get the following error.

The bootstrap/cache directory must be present and writable.

I tryed the obvious solutions

Right click and change permission -> it cycles back as soon as I leave the window.

Look if I am logged in as admin -> I am.

Change the advanced security settings -> I am the owner and have full access.

Reinstall my hole machine (yes I know drastic)

I hope there is someone who has encountered the same issue and maybe has a solution.

0 likes
4 replies
Pieter-Jan's avatar

I don't think running Linux on a windows machine is the solution. I am sure alot of devs on here are running windows machines without this issue.

Snapey's avatar

needs to be writable by the user that runs the web server.

Pieter-Jan's avatar

@Snapey Ok, if I do php artisan serve, how can I see wich user is doing it. How can I change the php artisan serve as beeing the administrator of my system?

Please or to participate in this conversation.