View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001971||Xdebug||Documentation||public||2021-05-05 14:51||2021-05-05 15:01|
|Summary||0001971: Let developers know about the clear_env configuration in PHP-FPM|
|Description||While developing with docker, most developers use the XDEBUG_CONFIG and XDEBUG_MODE to set up xdebug. However, because PHP_FPM has this 'clear_env' configuration set to yes by default, those environment variables are not considered.|
Please make sure everyone knows about this in the documentation because otherwise it is very hard to realize why is it that XDEBUG doesn't work.
More specifically, in https://xdebug.org/docs/all_settings I think it would be great to add a mention to this PHP-FPM configuration right next to the first mention of the XDEBUG_CONFIG environment variable at the beginning and also next to XDEBUG_MODE in https://xdebug.org/docs/all_settings#mode
|Tags||debug, Docker, fpm|
One thing you can do if you are running into the same issue with 'clear_env' is to create a file *.conf with this content:
clear_env = no
and then run docker like this:
docker run -v $(pwd)/my-configuration.conf:/etc/php/7.4/fpm/conf.d/my-configuration.conf ...