Answer the question
In order to leave comments, you need to log in
How to give permissions to the var/lib/php/session folder in a container?
Hello!
I use docker-compose stack with phpfpm, nginx containers.
I'm trying to install DLE CMS, but I ran into a problem, in the off-guide they require to give access rights:
chown -R root:nginx /var/lib/php/session/
How to execute it in a container?
Answer the question
In order to leave comments, you need to log in
1) to execute a command relative to the container, you can rewrite the image build through the Dockerfile and register the connection of this file in docker-compose.yml.
2) perhaps the :nginx group for docker is not needed there. If necessary, then you need to add it to the Dockerfile too.
3) you may need to map the sessions folder as volume on the host system so that the nginx container and the php container can see it the same
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question