Skip to content

Instantly share code, notes, and snippets.

@rajeshisnepali
Created February 6, 2019 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeshisnepali/b506fb01e6dbae42cca3a4a25c62f85c to your computer and use it in GitHub Desktop.
Save rajeshisnepali/b506fb01e6dbae42cca3a4a25c62f85c to your computer and use it in GitHub Desktop.
Give permission and change ownership to run Laravel application
#!/bin/bash
# to be able to work this function globally, copy or create link in /usr/local/bin
# Change ownership for .env
sudo chown $USER:$USER .env
# Give write Permission to /bootstrap/cache & /storage
sudo chown -R $USER:www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment