shinsenter/php

How to get all environment variables?

Closed this issue · 1 comments

Hello, I use the tag fpm-apache mirror. I can see in the documentation that you can use 'php-envvars' to view PHP-related environment variables. But what command can I use to view all environment variables, such as Apache-related configurations?

@kadifu
You can use the built-in Linux command env to list all environment variables.
https://www.man7.org/linux/man-pages/man1/env.1.html

To run it in your container from the host machine:

docker exec -it <your_container_id> env