Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgmgpyaesonewin/e8e18c3eca6af2f06ec39aeabea04678 to your computer and use it in GitHub Desktop.
Save mgmgpyaesonewin/e8e18c3eca6af2f06ec39aeabea04678 to your computer and use it in GitHub Desktop.
The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
# Run the following to solve the The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
sudo chown -R $USER:www-data storage
sudo chown -R $USER:www-data bootstrap/cache
chmod -R 775 storage
chmod -R 775 bootstrap/cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment