14 Oct 2018
01:17 PM
- last edited on
09 Dec 2021
10:02 PM
by
MaciejNeumann
Hi,
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?
Regards,
Sebastian
Solved! Go to Solution.
Hello,
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.
Regards,
Mathieu