nginx - php-fpm wont load php.ini settings -


i'm using nginx , php-fpm.

my phpinfo page says php loading php.ini file /etc/php5/fpm/php.ini, tried updating file running

sudo service php-fpm reload 

but php still uses old settings, phpinfo shows old values if didn't modify anything.

i tried restarting php-fpm , restarting computer still doesn't work, wont load new php.ini values...

you may want check fpm pool configuration. can set php.ini settings there in opinion better place when using fpm.

you'll find @ end of fpm pool configuration:

; additional php.ini defines, specific pool of workers. these settings ; overwrite values defined in php.ini. directives ; same php sapi: ;   php_value/php_flag             - can set classic ini defines can ;                                    overwritten php call 'ini_set'. ;   php_admin_value/php_admin_flag - these directives won't overwritten ;                                     php call 'ini_set' ; php_*flag, valid values on, off, 1, 0, true, false, yes or no.  ; defining 'extension' load corresponding shared extension ; extension_dir. defining 'disable_functions' or 'disable_classes' not ; overwrite defined php.ini values, append new value ; instead.  ; note: path ini options can relative , expanded prefix ; (pool, global or /usr/local)  ; default value: nothing defined default except values in php.ini , ;                specified @ startup -d argument 

now can add random configuration changes such as:

php_flag[display_errors] = on  php_admin_flag[log_errors] = on  php_admin_value[memory_limit] = 128m php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i 

of course, restart fpm after change configuration takes effect.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -