Replies: 4 comments
-
Hi @hhaswan I’ve reviewed your setup and tried using the following docker-compose.yml to create a container, and I didn’t notice anything unusual. services:
test:
image: shinsenter/php:7.1-fpm-nginx
ports:
- 80:80
environment:
- TZ=Asia/Makassar
- DOCUMENT_ROOT=/app
- ALLOW_RUNTIME_PHP_ENVVARS=1
- PHP_MAX_EXECUTION_TIME=1800
- PHP_POST_MAX_SIZE=100M
- PHP_UPLOAD_MAX_FILESIZE=100M
- PHP_MAX_INPUT_TIME=600
- PHP_MAX_INPUT_VARS=3000
- PHP_REQUEST_TERMINATE_TIMEOUT=1800
Could you provide any additional information that you think might be relevant? |
Beta Was this translation helpful? Give feedback.
-
Maybe this is stale and to be closed, but adding some ideas for future visitors.
You should look if the file is available on the docker and who owns it. I've only tried apache, but in my case it's generated when "compose up".
I believe php-envvars will write the file. If you set DEBUG_MODE=1 maybe you can get more info. You can also run these commands to see what they say.
So you had it working before that? Can you revert back and see what the file said then?
As a workaround you should be able to do this directly in a *.conf file. In many cases, I'd say that could be an easier way than the environment variables in many cases. Just mount your own conf in compose yml.
Note the zzz to override the zz if needed.
I don't know if you need or use this, but it might allow setting the variable in runtime too. @shinsenter A bit off topic, but I got curious when I read the code.
Was the inner 'ticks' intentional? And why is it there at all? It doesn't populate nor clear "all_env_vars" does it? Am I missing something? |
Beta Was this translation helpful? Give feedback.
-
@JAGulin Thank you for your kindness explanation.
↑ php/src/php/common/rootfs/usr/local/bin/env-default Lines 34 to 37 in 7201438 I do this to make it easier to review generated config files, as having comments improves readability. |
Beta Was this translation helpful? Give feedback.
-
As for the original bug-report (and the 201), I think it can be closed. But it might be useful to keep it visible as a FAQ, if you have some way to do so. As for my off-topic question, that's also closed:
I see, so functionally "do nothing" was the expected result even though I didn't expect env-default to do that. Thank you for the clarification, maybe there should be an additional comment saying "# add comment to .docker-env" to further improve readability. :-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have configured the
docker-compose.yml
(usingshinsenter/php:7.1-fpm-nginx
) with the following environment variables:However, when running
docker compose logs -f
, I encounter the following error:This error occurs after adding
PHP_REQUEST_TERMINATE_TIMEOUT=1800
. I would like to adjust PHP-FPM for therequest_terminate_timeout
variable. Any assistance would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions