PHP ini settings not applied when command provided #237
-
|
So, here's the case. However, in Kubernetes, when I start the container with a command (eg Is there a way to force this? Do I have to run a command before running my command, to apply the settings from ENV to php ini config? I use |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
I think I got it working by putting my run command in the SUPERVISOR_PHP_COMMAND env variable. Is this the way to go? |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for reaching out regarding an issue related to the Docker images I provided. It seems the problem you’re encountering is due to calling the PHP binary directly before the container has a chance to initialize the appropriate configuration files during the bootstrap phase. In this case, PHP will run with its default configuration, just as it does in the official PHP Docker images by default. If you’re using the
Once you provide these details, I’ll continue investigating the root cause of the issue. Regarding the use of the |
Beta Was this translation helpful? Give feedback.
-
|
By the way, if your |
Beta Was this translation helpful? Give feedback.
By the way, if your
php craft queue/listencommand is a long-lived process, you can treat it as the main process running inside its own container. In this case, it can replace the default Apache + PHP-FPM process. Using theSUPERVISOR_PHP_COMMANDenvironment variable in this case aligns perfectly with the design I originally intended.