PHP-FPM pm.max_children default value

Discussion in 'General' started by Roberto Altravia, Oct 9, 2018.

  1. Roberto Altravia

    Roberto Altravia New Member

    Hello,
    I would like to lower the pm.max_children default value, from 10 (default) to 5, IspConfig 3.1

    I changed /usr/local/ispconfig/interface/web/sites/form/web_vhost_domain.tform.php to:

    'pm_max_children' => array (
    'datatype' => 'INTEGER',
    'formtype' => 'TEXT',
    'validators' => array ( 0 => array ( 'type' => 'REGEX',
    'regex' => '/^([1-9][0-9]{0,10})$/',
    'errmsg'=> 'pm_max_children_error_regex'),
    ),
    'default' => '5',
    'value' => '',
    'width' => '3',
    'maxlength' => '3'
    ),

    But I always see 10 as PHP-FPM pm.max_children in Website Options (I tried creating a new one and restarting apache too)
    Can someone tell me what is wrong ?

    Thank you,
    Roberto
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to change the default value of the matching database column in web_domain database in the dbispconfig database.
     
  3. Roberto Altravia

    Roberto Altravia New Member

    Hi Till,
    I would like to change the default for the *new* websites, not for the old ones.
    In the web_domain table I find only the already created websites (for which I can change the values via web interfaces)

    how to do that ?

    Thank you,
    Roberto
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I understand what you want to achieve and I posted above how to do that. While I talk about the default value of the database column you are talking about records in that database, that's something different.
     
  5. Roberto Altravia

    Roberto Altravia New Member

    Working now. Thank you.
    To explain it better, you suggested to change the structure of the database table and alter the default values of the fields

    --
    Roberto
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Who did?
     

Share This Page