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

Allow setting PHP UID and GID via environment variables #234

Open
TBhimdi opened this issue Dec 20, 2019 · 0 comments
Open

Allow setting PHP UID and GID via environment variables #234

TBhimdi opened this issue Dec 20, 2019 · 0 comments

Comments

@TBhimdi
Copy link

TBhimdi commented Dec 20, 2019

Running this image and mounting /foo/bar/srv to /srv works fine, until I try to load a php website. I either have to set /foo/bar/srv to 777 or set /foo/bar/srv to UID 1000 manually, otherwise php files won't execute and won't be able to write files.

Having the ability to set the UID and GID to what I use for my Docker images currently would remove the manual steps to get PHP working (I spent tons of time trying to figure out why).

This is on a Synology NAS, tested with a test php file with phpinfo (for read/execute checks) and then with tt-rss, which failed because it required write perms (write checks).

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

1 participant