Skip to content

Instantly share code, notes, and snippets.

@avblink
Last active February 2, 2019 22:09
Show Gist options
  • Save avblink/9fe42cfaa1878472d58991611ffcb810 to your computer and use it in GitHub Desktop.
Save avblink/9fe42cfaa1878472d58991611ffcb810 to your computer and use it in GitHub Desktop.
Laravel related

Laravel 5 file permissions:

The storage directory

Group Writable (Group, User Writable)

$ sudo chmod -R gu+w storage

World-writable (Group, User, Other Writable)

$ sudo chmod -R guo+w storage

The bootstrap/cache directory

Group Writable (Group, User Writable)

$ sudo chmod -R gu+w bootstrap/cache

World-writable (Group, User, Other Writable)

$ sudo chmod -R guo+w bootstrap/cache

Assign directories to server group and give both user and group read & write permissions for given folders

sudo chgrp -R www-data storage bootstrap/cache data_csv
sudo chmod -R ug+rwx storage bootstrap/cache data_csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment