Having to customize the php-fpm pool configuration of a new server, I wonder if it is possible / allowed / recommended to have a new pool file, which name goes alphabetically after the original one, which only has values that override the initial configuration.
The original configuration is in
It seems, according to the pages related to the installation, engineers modify directly the original (saving a copy of the initial values). E.g.
[www] ... user www-data group www-data pm.max_children 2
gives after modification
[www] ... user myapp ; was www-data group myapp ; was www-data pm.max_children 8 ; was 2
But it seems that could be a task to be repeated after the next upgrade of php-fpm (furthermore the configuration is in a
7.0 path, that's worrying).
Instead of modifying the original file, I would like to keep it unchanged, and add another one, say
wwwmyapp.conf that would declare the same pool, and having only the values that have changed
[www] ; same pool! user myapp group myapp pm.max_children 8
pool.d, list of files
php-fpm.conf all pool conf files are loaded, the values of
wwwmyapp will be read after the ones of
www ( in the same
www pool ) and should override the first values.
- It seems to work in a few tests and no error reported, but will it work all the time, and for all values?
- Should we overwrite the config file directly instead?
Couldn't find an answer in any doc, even on php.net.