Join the community today
Register Now

PHP-FPM Should php-fpm pool2 example include these extra lines?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jeffwidman, Jun 4, 2015.

Tags:
  1. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    2:59 PM
    Noticed a couple of lines at the bottom of php-fpm.conf but not the 2nd pool example conf files:
    centminmod/php-fpm.conf at 123.08beta03 · centminmod/centminmod · GitHub

    Code:
    ; 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
    ; FPM to .php extensions to prevent malicious users to use other extensions to
    ; exectute php code.
    ; Note: set an empty value to allow all extensions.
    ; Default Value: .php
    security.limit_extensions = .php .php3 .php4 .php5
    ; catch_workers_output = yes
    php_admin_value[error_log] = /var/log/php-fpm/www-php.error.log
    php_admin_value[disable_functions] = shell_exec
    
    Are these per-pool settings (that I should probably include in each of my per-pool conf files) or global to all php-fpm pools?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    7:59 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah those 2 lines are optional if you want to or not and they are per pool