Skip to content

Instantly share code, notes, and snippets.

@KKSzymanowski
Created June 1, 2018 13:07
Show Gist options
  • Select an option

  • Save KKSzymanowski/a990a2c0895bb79bb70c5883db48fc59 to your computer and use it in GitHub Desktop.

Select an option

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
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