Created
June 1, 2018 13:07
-
-
Save KKSzymanowski/a990a2c0895bb79bb70c5883db48fc59 to your computer and use it in GitHub Desktop.
[Laravel] Set default ACL for storage and bootstrap folders to allow www-data to write there
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chmod -R ug=rwX,o=rX bootstrap/ | |
| chown -R www-data:www-data bootstrap/ | |
| setfacl -R -m default:u::rwX,default:g::rwX,default:o::rX bootstrap/ | |
| setfacl -R -m default:u:www-data:rwX,default:g:www-data:rwX bootstrap/ | |
| chmod -R ug=rwX,o=rX storage/ | |
| chown -R www-data:www-data storage/ | |
| setfacl -R -m default:u::rwX,default:g::rwX,default:o::rX storage/ | |
| setfacl -R -m default:u:www-data:rwX,default:g:www-data:rwX storage/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment