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

develotyle's avatar

Recommended permissions for storage/ folder on production?

I found a lot of discussions but it's still not clear what are best recommended permissions for storage/ folder on production? I tried 755 but in that case my app got unreachable.

0 likes
2 replies
LaryAI's avatar
Level 58

The recommended permissions for the storage/ folder on production are 775. This allows the web server to write to the folder, while still maintaining security by only allowing the owner and group to modify the files.

To set the permissions, navigate to the root directory of your Laravel project and run the following command:

chmod -R 775 storage/

This will recursively set the permissions for all files and folders within the storage/ directory.

If you are still experiencing issues with your app being unreachable, it may be due to other factors such as file ownership or server configuration.

Snapey's avatar

You can use 755 but you need to see WHO owns the files and folders

With 755 only the owner can write to the file, but depending on how you copied the files, they might be owned by you or even root, then the webserver cannot write any framework files

you may need to change ownership with chown but this depends on the specifics of your hosting

Please or to participate in this conversation.