# Environment variables ignored by Apache / NGINX / PHP-FPM

**URL:** <https://community.dynatrace.com/t/environment-variables-ignored-by-apache-nginx-php-fpm/16347>\
**Category:** Open Q&A\
**Tags:** nginx, php, apache\
**Created:** [October 14, 2018, 8:17pm UTC](https://community.dynatrace.com/t/environment-variables-ignored-by-apache-nginx-php-fpm/16347 "2018-10-14T20:17:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mat\_cat\_adn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mat_cat_adn/32/1553_2.png) [@mat\_cat\_adn](https://community.dynatrace.com/u/mat_cat_adn)\
**Post date:** [October 15, 2018, 9:47am UTC](https://community.dynatrace.com/t/environment-variables-ignored-by-apache-nginx-php-fpm/16347/2 "2018-10-15T09:47:43Z")

</div>

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

---

_[View the full topic](https://community.dynatrace.com/t/environment-variables-ignored-by-apache-nginx-php-fpm/16347)._
