-
Notifications
You must be signed in to change notification settings - Fork 64
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
storage directory creation causes permission issues with bref/php-82-fpm-dev:2 #117
Comments
Thank you for the detailed report and investigation! Maybe a simple fix could be to chmod 777 the storage dir? Any downside? |
Is this only an issue on the dev images, or on all fpm images? |
oh good point! |
I tested in Lambda with Startup logs:
Output of
|
IIRC this is because when running in Docker, things run as |
I'm fine with this, I don't foresee any negative impact in the dev image or in Lambda |
When storage directories are created for the first time they get created as
root:root
(due to being executed by bref hooks).The issue is that web requests cannot write to the storage directory because fpm runs under the nobody user and you end up with errors like below.
If I delete
/tmp/storage
after initial creation and fire a web request, it will happily create the storage directories asnobody:nobody
.Curious on thoughts of how to solve this.
The text was updated successfully, but these errors were encountered: