14 Oct 2018 01:17 PM - last edited on 09 Dec 2021 10:02 PM by MaciejNeumann
I'm playing with environment variables. I've set them on ubuntu host in /etc/environments. After host restart, proper environments DT_TAGS and DT_CUSTOM_PROP are properly read by goo processed that are detected by Dynatrace. Unfortunately nginx / PHP-FPM / apache are ignoring them. Is it something special I have to do, to make it work?
Solved! Go to Solution.
Nginx and Apache don't read in /etc/environment.
You must create file with your env vars in specifics files :
- Nginx : /etc/default/nginx
- Apache : /etc/apache2/envvars
For PHP-FPM, try to configure clear_env = no in configuration.