From def4c989d75e11c3052849b2901b6e7d1b1d3952 Mon Sep 17 00:00:00 2001 From: RisingOpsNinja <175097282+RisingOpsNinja@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:42:57 +0200 Subject: [PATCH 1/2] Disable PHP_DISPLAY_ERRORS by default Don't show PHP errors to users. --- install/assets/defaults/20-php-fpm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/assets/defaults/20-php-fpm b/install/assets/defaults/20-php-fpm index ece1b54..ea95753 100755 --- a/install/assets/defaults/20-php-fpm +++ b/install/assets/defaults/20-php-fpm @@ -5,7 +5,7 @@ ENABLE_PHP_FPM=${ENABLE_PHP_FPM:-"TRUE"} PHP_APC_SHM_SIZE=${PHP_APC_SHM_SIZE:-"128M"} PHP_APC_TTL=${PHP_APC_TTL:-"7200"} PHP_FPM_CONTAINER_MODE=${PHP_FPM_CONTAINER_MODE:-"nginx-php-fpm"} -PHP_DISPLAY_ERRORS=${PHP_DISPLAY_ERRORS:-"TRUE"} +PHP_DISPLAY_ERRORS=${PHP_DISPLAY_ERRORS:-"FALSE"} PHP_ENABLE_CREATE_SAMPLE_PHP=${PHP_ENABLE_CREATE_SAMPLE_PHP:-"TRUE"} PHP_HIDE_X_POWERED_BY=${PHP_HIDE_X_POWERED_BY:-"TRUE"} PHP_KITCHENSINK=${PHP_KITCHENSINK:-"FALSE"} From dc5ae080eea79021f45b3a9f647317509c89e3b1 Mon Sep 17 00:00:00 2001 From: RisingOpsNinja <175097282+RisingOpsNinja@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:54:28 +0200 Subject: [PATCH 2/2] Add documentation for PHP_DISPLAY_ERRORS --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 31c21d7..b50e3ac 100644 --- a/README.md +++ b/README.md @@ -234,6 +234,7 @@ When `PHP_FPM_CONTAINER_MODE` set to `nginx` the `PHP_FPM_LISTEN_PORT` environme | `PHP_TIMEOUT` | Maximum Script execution Time | `180` | | `PHP_UPLOAD_MAX_SIZE` | Maximum Input Size for Uploads | `2G` | | `PHP_WEBROOT` | Used with `CONTAINER_MODE=php-fpm` | `/www/html` | +| `PHP_DISPLAY_ERRORS` | Show PHP errors in the output | `FALSE` | #### Enabling / Disabling Specific Extensions