Skip to content

Instantly share code, notes, and snippets.

@kostyakoz
Created August 10, 2017 06:14
Show Gist options
  • Save kostyakoz/3a75f5524ac7f401635453c3b82ce6ee to your computer and use it in GitHub Desktop.
Save kostyakoz/3a75f5524ac7f401635453c3b82ce6ee to your computer and use it in GitHub Desktop.
# run in "root" folder (e.g /home/datmusic/api.datmusic.xyz/)
chown -R kostya:www-data storage .env
find storage -type f -exec chmod 664 {} \;
find storage -type d -exec chmod 775 {} \;
chgrp -R www-data storage .env
chmod -R ug+rwx storage .env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment