change some default php-fpm options

Discussion in 'Installation/Configuration' started by hanti, Mar 20, 2012.

  1. hanti

    hanti New Member

    Hello
    How i can change default values in sites/somesite/options

    pm.max_children
    pm.start_servers
    pm.min_spare_servers
    pm.max_spare_servers

    default values are really too high for my server so i want when someone adding a new site have this above settings lover.
    now i need always check if there is no new site added, when i see there is a new site i need change settings from admin user and then restart fpm process :(
    thx for help
     
    Last edited: Mar 20, 2012
  2. falko

    falko Super Moderator Howtoforge Staff

    You can do this on the web site's Options tab in ISPConfig.

    ISPConfig 3.0.5 will have lower default values. :)
     
  3. hanti

    hanti New Member

    thats nice, but is there any way to change default values ?

    i know i can do changes in "/usr/local/ispconfig/server/conf/php_fpm_pool.conf.master" file

    current settings are
    Code:
    pm.max_children = <tmpl_var name='pm_max_children'>
    pm.start_servers = <tmpl_var name='pm_start_servers'>
    pm.min_spare_servers = <tmpl_var name='pm_min_spare_servers'>
    pm.max_spare_servers = <tmpl_var name='pm_max_spare_servers'>
    if i set this to numbers i guess i wont be able to change those values in web site options anymore
    i was trying to find current settings in some template files but couldnt find it ;p
     
  4. falko

    falko Super Moderator Howtoforge Staff

    To change the default values, you must change the default values of the appropriate table column in the web_domain table in the ISPConfig database.
     
  5. hanti

    hanti New Member

    nice ! got it
    thx for help ;)
     

Share This Page