Answer the question
In order to leave comments, you need to log in
How to grant rights to magento 2?
Good evening, the problem is the following.
I give access to the folder where magento2 is located
through the terminal. sudo chmod -R 777
But after a while, an error pops up again that requires "more access"
again, I give out the same access - everything is fine.
Question.
How to put permanent access to the folder and the contents inside it. So that every half hour does not repeat the operation described above. Thanks
Answer the question
In order to leave comments, you need to log in
I'm going to scare you now, but permissions 0777 can't be set, ever, haha.
You need to find out from which user your web server is running, and assign it as the owner of the folder.
The permissions for folders should be 0755, and for files 0644. Better yet, 0750 and 0640.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question