Score:0

php_admin_value on php-fpm pools aren't working

us flag

My php-fpm pools look like this (as per https://www.php.net/manual/en/install.fpm.configuration.php#example-24 this is a very valid synthax:)

[vmtest]

prefix = /srv/users/vmtest

user  = vmtest
group = vmtest

listen       = /srv/users/vmtest/run/php-fpm.sock
listen.owner = vmtest
listen.group = www-data
listen.mode  = 660

env[PATH]   = /usr/local/bin:/usr/bin:/bin
env[TMPDIR] = /srv/users/vmtest/tmp
env[TEMP]   = /srv/users/vmtest/tmp
env[TMP]    = /srv/users/vmtest/tmp

slowlog = /srv/users/vmtest/log/php.slow.log

php_admin_value[error_log]      = /srv/users/vmtest/log/php.error.log
php_admin_value[mail.log]       = /srv/users/vmtest/log/php.mail.log
php_admin_value[doc_root]       = /srv/users/vmtest/app
php_admin_value[upload_tmp_dir] = /srv/users/vmtest/tmp

Everything works fine here, except php_admin_value values. When I load phpinfo() for any pool, it shows:

error_log => no value => no value
mail.log => no value => no value
doc_root => no value => no value
upload_tmp_dir => no value => no value
Score:1
us flag

I was testing using the CLI:

sudo -u vmtest php -r "phpinfo();"

which show empty values.

Using a file containing <? phpinfo(); and opening it trough the browser confirms it is working as expected.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.