Storage (storage/app) folder permissions?

Published 3 months 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?

Best Answer (As Selected By fastxpert)
s4muel

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

s4muel

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

s4muel

@fastxpert did it help?

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