14 Oct 2018
	
		
		09:17 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		10 Dec 2021
	
		
		06:02 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 MaciejNeumann
		
			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.
 
					
				
		
15 Oct 2018 10:47 AM
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
01 Feb 2019 10:23 AM
Hi all, I'm doing the same but I would to find a solution that can be fitted for all processes.
Did you have find the right way?
Thanks a lot in advance
