Skip to content

Instantly share code, notes, and snippets.

@anubra266
Created March 1, 2021 03:28
Show Gist options
  • Select an option

  • Save anubra266/b6491ca988f715a67dc48b7ef0f8b0a4 to your computer and use it in GitHub Desktop.

Select an option

Save anubra266/b6491ca988f715a67dc48b7ef0f8b0a4 to your computer and use it in GitHub Desktop.
Solve laravel flock error

Check permissions of storage/framework/cache/data just to define 777 to the storage/framework/cache won't be enough, you should also give the webserver user permissions to write into that folder, typically the user is: www-data or _www.

The right thing is to have 775 permissions to this folder then change only the grupo to allow both your user and the webserver user to write into those folders.

Run this in shell

chmod 775 storage/framework/cache
chmod 775 storage/framework/cache/data

sudo chgrp www-data storage/framework/cache
sudo chgrp www-data storage/framework/cache/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment