Skip to content

Instantly share code, notes, and snippets.

@k-zakhariy
Last active August 2, 2021 09:00
Show Gist options
  • Save k-zakhariy/e4715e90cfe4eaf6c666c57d91ccca23 to your computer and use it in GitHub Desktop.
Save k-zakhariy/e4715e90cfe4eaf6c666c57d91ccca23 to your computer and use it in GitHub Desktop.
Laravel folder permissions
sudo chown -R USERNAME:USERNAME /path/to/laravel
sudo find /path/to/laravel -type f -exec chmod 644 {} \;
sudo find /path/to/laravel -type d -exec chmod 755 {} \;
cd /path/to/laravel
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
sudo usermod -a -G www-data USERNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment