Answer the question
In order to leave comments, you need to log in
How to do give permissions to chmod() via PHP under docker?
Good day.
I decided to try Yii3, cloned it, ran it under docker. On a computer Windows 10 + WSL. In principle, the docker is working fine, several working projects have been successfully deployed on it. The framework is not important in this case, just for context.
Under the hood, the framework pulls the chmod() php command to generate assets, after which it crashes with the error chmod(): Operation not permitted.
I understand the problem, but I couldn't fix it. Tell me, how can I give the rights to the script for this operation?
Answer the question
In order to leave comments, you need to log in
chmod - gives access flags to the owner, group and others, for example 777 or 555
but naturally, any left user cannot set permissions on other people's files, for this you need to assign the owner to the file from which php is launched, and from whom I don’t know , this is how you screwed it up there, you are the administrator of your project and probably have the competence for that, if not, attract devops to set everything up for you.
See what are permissions and what is chown/chmod...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question