• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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