Answer the question
In order to leave comments, you need to log in
How to properly set up chmod for laravel?
It is not possible to properly configure chmod folder permissions for laravel.
Found a topic on stackoverflow
https://stackoverflow.com/questions/30639174/how-t...
Did everything as written there
sudo chown -R $USER:www-data .
sudo find . -type f -exec chmod 664 {} \;
sudo find . -type d -exec chmod 775 {} \;
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
Failed to clear cache. Make sure you have the appropriate permissions.
Answer the question
In order to leave comments, you need to log in
if I go to the site, then as I understand it, a new cache file is created with rights that do not allow deleting this file, why does this happen and how can I deal with it?This means that your web server is most likely running as root.
ls -l bootstrap/cache
- you will see which user the web server is running under.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question