Req #76798 [Com]: Can't configure PHP-FPM via environment variables
| From: | nhietmienhbao06 at gmail dot com | Date: | Wed, 23 Aug 2023 05:47:31 +0000 |
| Subject: | Req #76798 [Com]: Can't configure PHP-FPM via environment variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-245231@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76798&edit=1
ID: 76798
Comment by: nhietmienhbao06 at gmail dot com
Reported by: walterdolce at gmail dot com
Summary: Can't configure PHP-FPM via environment variables
Status: Open
Type: Feature/Change Request
Package: FPM related
Operating System: All
PHP Version: 7.2.9
Block user comment: N
Private report: N
New Comment:
I hope you find your answer and also share with us if you find thanks for sharing with us.
(https://github.com)(https://www.adpworkforce-now.com/)
Previous Comments:
------------------------------------------------------------------------
[2018-08-26 21:40:42] walterdolce at gmail dot com
Description:
------------
The php.ini file supports configuring PHP this way:
"""
error_log = ${PHP_INI_ERROR_LOG}
"""
This is perfect when it comes to using Docker. And it's also a recommended practice according
to the 12factor app methodology (https://12factor.net/config).
One would expect to be able to do the same with PHP-FPM. But that doesn't seem to be the case
with the following:
"""
[www]
clear_env = env[PHP_FPM_CLEAR_ENV]
"""
Why? Why is this not possible?
Please note the following does not work either:
"""
[www]
clear_env = $PHP_FPM_CLEAR_ENV
"""
If "FPM uses php.ini syntax for its configuration file" (as the docs say on page http://php.net/manual/en/install.fpm.configuration.php),
then behaviour and capabilities should also be the same, IMO.
Interestingly, as reported by various people online and the docs, it IS possible to SET environment
variables. Yet GETTING environment variables is not. But it shouldn't be the case.
Thanks.
Expected result:
----------------
PHP-FPM should be configurable via environment variables.
Actual result:
--------------
PHP-FPM can't be configured via environment variables.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76798&edit=1