Storage (storage/app) folder permissions?

Published 2 weeks ago by fastxpert

I have ubuntu server and can upload to "storage/app" only if my folder has 7777 permissions, but this is not secure, right? With 775 and 755 is the same issue, cannot upload... Which permission or setup is here needed to be on the right way for uploads & security?

2 weeks ago (32,720 XP)

from the laravel documentation

Directory Permissions

After installing Laravel, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run.

this should be fine: change the owner (+group) of the folder to www-data, then use 755 permissions on the folder itself, 644 on the files

6 days ago (32,720 XP)

@fastxpert did it help?

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