From 44f11cee277b93708ef6a17e08e2ba03d28bf3f8 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Wed, 7 Dec 2022 20:16:05 +0500 Subject: [PATCH] fix php env --- buildfiles/etc/php/7.4/fpm/pool.d/www.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/buildfiles/etc/php/7.4/fpm/pool.d/www.conf b/buildfiles/etc/php/7.4/fpm/pool.d/www.conf index 38ea079..59e90ff 100644 --- a/buildfiles/etc/php/7.4/fpm/pool.d/www.conf +++ b/buildfiles/etc/php/7.4/fpm/pool.d/www.conf @@ -394,7 +394,7 @@ pm.max_spare_servers = 3 ; Setting to "no" will make all environment variables available to PHP code ; via getenv(), $_ENV and $_SERVER. ; Default Value: yes -;clear_env = no +clear_env = no ; Limits the extensions of the main script FPM will allow to parse. This can ; prevent configuration mistakes on the web server side. You should only limit @@ -407,11 +407,11 @@ pm.max_spare_servers = 3 ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment. ; Default Value: clean env -;env[HOSTNAME] = $HOSTNAME -;env[PATH] = /usr/local/bin:/usr/bin:/bin -;env[TMP] = /tmp -;env[TMPDIR] = /tmp -;env[TEMP] = /tmp +env[HOSTNAME] = $HOSTNAME +env[PATH] = /usr/local/bin:/usr/bin:/bin +env[TMP] = /tmp +env[TMPDIR] = /tmp +env[TEMP] = /tmp ; Additional php.ini defines, specific to this pool of workers. These settings ; overwrite the values previously defined in the php.ini. The directives are the