mod_php_install.sh: pass some environment variables like 'PATH'.

This commit is contained in:
Christoph 2021-10-08 03:03:51 +02:00
parent 7d9c9671a4
commit cb2b31bec1

View File

@ -3158,7 +3158,7 @@ ping.response = $FPM_DEFAULT_POOL_PING_RESPONSE
; The access log file ; The access log file
; Default: not set ; Default: not set
;access.log = log/$pool.access.log ;access.log = log/\$pool.access.log
access.log = $FPM_DEFAULT_POOL_ACCESS_LOG access.log = $FPM_DEFAULT_POOL_ACCESS_LOG
; The access log format. ; The access log format.
@ -3176,7 +3176,7 @@ access.log = $FPM_DEFAULT_POOL_ACCESS_LOG
; - %{mili}d ; - %{mili}d
; - %{microseconds}d ; - %{microseconds}d
; - %{micro}d ; - %{micro}d
; %e: an environment variable (same as $_ENV or $_SERVER) ; %e: an environment variable (same as \$_ENV or \$_SERVER)
; it must be associated with embraces to specify the name of the env ; it must be associated with embraces to specify the name of the env
; variable. Some exemples: ; variable. Some exemples:
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
@ -3263,7 +3263,7 @@ request_terminate_timeout = $FPM_DEFAULT_POOL_TERMINATE_TIMEOUT
; Chroot to this directory at the start. This value must be defined as an ; Chroot to this directory at the start. This value must be defined as an
; absolute path. When this value is not set, chroot is not used. ; absolute path. When this value is not set, chroot is not used.
; Note: you can prefix with '$prefix' to chroot to the pool prefix or one ; Note: you can prefix with '\$prefix' to chroot to the pool prefix or one
; of its subdirectories. If the pool prefix is not set, the global prefix ; of its subdirectories. If the pool prefix is not set, the global prefix
; will be used instead. ; will be used instead.
; Note: chrooting is a great security feature and should be used whenever ; Note: chrooting is a great security feature and should be used whenever
@ -3296,7 +3296,7 @@ request_terminate_timeout = $FPM_DEFAULT_POOL_TERMINATE_TIMEOUT
; by clearing the environment in workers before env vars specified in this ; by clearing the environment in workers before env vars specified in this
; pool configuration are added. ; pool configuration are added.
; Setting to "no" will make all environment variables available to PHP code ; Setting to "no" will make all environment variables available to PHP code
; via getenv(), $_ENV and $_SERVER. ; via getenv(), \$_ENV and \$_SERVER.
; Default Value: yes ; Default Value: yes
;clear_env = no ;clear_env = no
@ -3308,14 +3308,14 @@ request_terminate_timeout = $FPM_DEFAULT_POOL_TERMINATE_TIMEOUT
; Default Value: .php ; Default Value: .php
;security.limit_extensions = .php .php3 .php4 .php5 .php7 ;security.limit_extensions = .php .php3 .php4 .php5 .php7
; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; Pass environment variables like LD_LIBRARY_PATH. All \$VARIABLEs are taken from
; the current environment. ; the current environment.
; Default Value: clean env ; Default Value: clean env
;env[HOSTNAME] = $HOSTNAME env[HOSTNAME] = $(hostname -f)
;env[PATH] = /usr/local/bin:/usr/bin:/bin env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp env[TMP] = /tmp
;env[TMPDIR] = /tmp env[TMPDIR] = /tmp
;env[TEMP] = /tmp env[TEMP] = /tmp
; Additional php.ini defines, specific to this pool of workers. These settings ; 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 ; overwrite the values previously defined in the php.ini. The directives are the