Skip to content

Instantly share code, notes, and snippets.

@ayoubjamouhi
Last active September 1, 2021 09:03
Show Gist options
  • Save ayoubjamouhi/275be36592b9819dbee71dc5b794db03 to your computer and use it in GitHub Desktop.
Save ayoubjamouhi/275be36592b9819dbee71dc5b794db03 to your computer and use it in GitHub Desktop.
Problem storage permissions in laravel ubuntu
chown -R www-data:www-data htdocs/laravel/storage
chown -R www-data:dotnet var/www/html
If you are used to using a Debian/Ubuntu distribution and you change to a CentOS/Red Hat distribution, you may be experiencing problems because the correct user is "apache" on CentOS/Red Hat. The string becomes:
chown -R apache:apache /somefolder
sudo /usr/sbin/usermod -a -G apache mindevs
sudo setenforce 0 if you couldn't edit in folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment