shinsenter / php

📦 Simplified PHP Docker images for effortless customization and extension setup. Our Docker images cover PHP versions from 5.6 to 8.4, available in CLI, ZTS, FPM, FPM/Apache2, FPM/Nginx, RoadRunner, FrankenPHP, and Nginx Unit variants, for both Debian and Alpine versions. Updated everyday.
https://hub.docker.com/r/shinsenter/php
GNU General Public License v3.0
165 stars 26 forks source link

How to get all environment variables? #124

Closed kadifu closed 3 months ago

kadifu commented 3 months ago

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?

shinsenter commented 3 months ago

@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