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

KingBosman's avatar

(sail-linuxmint) Correct way to set file permissions?

On creating a new project (sail) I ran into an issue where there were permissions denied in storage. The easy way to fix this was to se storage with chmod 777 but a lot of people said it was not a good idea to do this.

Eventually I got it to work with these commands, is this best practice? : docker exec example-app-laravel.test-1 chmod -R 775 docker exec example-app-laravel.test-1 chgrp -R sail storage bootstrap/cache

0 likes
0 replies

Please or to participate in this conversation.