Laravel Worker and Storage permissions

Posted 8 months ago by snake03

Good morning everybody,

I noticed that the Laravel by default creates folder with '755' permission. That means that the user www-data, with Nginx, is the owner of the created folder.

When i setup a worker, this is runned with the system user (user "forge", for example). If I have a job that tries to create a subfolder inside a folder created by Laravel, I have a permission issue, because the forge user can't run a mkdir inside a 755 folder of www-data.

What can I do to fix this?

One possibility is to set the default permission of created folder to 775, but I don't how to do it.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.