Skip to content

stack/lamp: support setting environment variables for php process

Jérome Perrin requested to merge fix/phpfpm-env into master

when we switched to FPM to run php, environment variables set in the apache process are no longer inherited in php process, which caused matomo initialization of database via environment variables to become non effective.

We could set clear_env = no in php-fpm and restore the old behavior, but since environment is cleared by default it seems safer to follow php default way of doing this and explicitly setting the variables that we need.

Merge request reports