Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symfony example, not working. Permission issue to write session files. #3

Open
Tokeiito opened this issue May 4, 2015 · 3 comments

Comments

@Tokeiito
Copy link
Contributor

Tokeiito commented May 4, 2015

An exception has been thrown during the rendering of a template ("Warning: SessionHandler::read(): open(/var/lib/php/session/sess_i2hkeo73um70mof2q020c5n0t0, O_RDWR) failed: Permission denied (13)") in AcmeDemoBundle::layout.html.twig at line 11.

@mn7z
Copy link

mn7z commented May 4, 2015

yep, seems like nginx is running under default user instead of www

@Tokeiito
Copy link
Contributor Author

Tokeiito commented May 5, 2015

Nginx and PHP-fpm running on www user. From debuging it looks like that something is broken up with /var/lib/php/* permissions.
Issue is fixed after you physicaly delete and recreate thous directories inside docker image. But it is not solution.

@Tokeiito
Copy link
Contributor Author

Tokeiito commented May 5, 2015

It was solved by moving /var/lib/php/session to volumes and mounting it outside container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants