• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Nginx PHP-FPM override Pool Settings (pm.max_children = 5)

Florian_M

New Pleskian
I've enabled nginx + php-fpm, but plesk writes in
/etc/php5/fpm/pool.d/myhostname.tld.conf

pm = ondemand
pm.max_children = 5

Where can i override the pm mechanism (e.g. to dynamic) + increse the pm.max_children value?
 
Yes

; If you need to customize this file, use either custom PHP settings tab in
; Panel or override settings in /var/www/vhosts/system/myhostname.tld/conf/php.ini.
; To override pool configuration options, specify them in [php-fpm-pool-settings]
; section of /var/www/vhosts/system/myhostname.tld/conf/php.ini file.

I've created these files but i cannot override the pm + pm_max_children
Also, there is no php.ini file in the conf folder....
 
Ugh...

Create the aforementioned file with following content:

[php-fpm-pool-settings]
pm = dynamic
pm.max_children = 9001


Also read the manual and make sure you have all required parameters specified.

Then reconfigure domain using httpdmng or php_settings utility.
 
Last edited:
I've tried it again, but it doesn't work.

I've created the php.ini file in /var/www/vhosts/system/myhostname.tld/conf/ and rebuilt configs:
[php-fpm-pool-settings]
pm = dynamic
pm.max_children = 12
pm.start_servers = 7
pm.min_spare_servers = 7
pm.max_spare_servers = 35

But php-fpm is still working under pm = on demand with 5 processes (default settings)
 
i think this bug should be fixed by the parallels team... but no response from them so far.

Can you please fix this bug?
 
Almost 2 years on this issue and they didn't put a response?

I've got into the same issue today for the latest preview version.

I've did a search for some strings related to fpm in all the psa folder.

What I found is that /usr/local/psa/admin/bin/httpdmng can be used to regenerate all needed files.

example:
/usr/local/psa/admin/bin/httpdmng --reconfigure mydomain.tld

PS.
(/usr/local/psa is for Plesk on Centos/RHEL; in case that you're on Debian/Ubuntu I belive is on /opt/psa)
 
Run this command after you create/modify /var/www/vhosts/system/bethechangetour.com/conf/php.ini:

/usr/local/psa/bin/php_settings -u

It will add your custom settings to the bottom of /opt/plesk/php/5.6/etc/php-fpm.d/domain.conf file.

Then restart php-fpm service.

The Plesk documentation on this stuff is quite terrible.
 
Back
Top