Skip to content

Commit 13aef58

Browse files
MollMoll
authored andcommitted
Set default env[PATH] and env[HOSTNAME] since it is cleared by default setting clear_env = yes in php-fpm
1 parent c7a80c1 commit 13aef58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/conf/php_fpm_pool.conf.master

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ pm.max_requests = <tmpl_var name='pm_max_requests'>
2828

2929
chdir = /
3030

31+
env[HOSTNAME] = $HOSTNAME
3132
env[TMP] = <tmpl_var name='document_root'>/tmp
3233
env[TMPDIR] = <tmpl_var name='document_root'>/tmp
3334
env[TEMP] = <tmpl_var name='document_root'>/tmp
35+
env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
3436

3537
<tmpl_if name='security_level' op='==' value='20'>
3638
<tmpl_var name='enable_php_open_basedir'>php_admin_value[open_basedir] = <tmpl_var name='php_open_basedir'>

0 commit comments

Comments
 (0)