Reputation: 352
I have given 'storage/framework/session' folder to 755 recursively but session created inside it has 644 in server,can anyone tell me why it is?
Upvotes: 0
Views: 2323
Reputation: 3083
When giving permissions to folders that have subfolders, and you want those affected as well, you should add the -R (recursive) command, example:
sudo chmod -R 755 storage
Don't forget to give the same permissions to bootstrap/cache folder. However most folders should be 755 and 644 for the files inside. If you're having issues, then check which group/user owns the folder/files . See if it gets solved by changing the group owners to www-data, like this:
sudo chgrp -R www-data storage bootstrap/cache
Upvotes: 2