B
B
Barney_Gubmle2019-03-15 17:38:35
linux
Barney_Gubmle, 2019-03-15 17:38:35

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

1 answer(s)
V
Vitaliy Orlov, 2019-03-15
@orlov0562

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 question

Ask a Question

731 491 924 answers to any question