• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Forwarded to devs Customize [global] section of php-fpm.conf in PHP-FPM Dedicated Mode

enerspace

Basic Pleskian
Username:

TITLE

Customize [global] section of php-fpm.conf in PHP-FPM Dedicated Mode

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

AlmaLinux 8.5 (Arctic Sphynx)
Plesk Obsidian
Version 18.0.42 Update #1

PROBLEM DESCRIPTION

Currently the php-fpm.conf file is created automatically by Plesk in the mode: PHP-FPM Dedicated Mode. There is no possibility to adjust variables in the [GLOBAL] section.

To increase the stability of PHP-FPM, it is necessary to make adjustments in the [GLOBAL] section. We provide servers with several thousand visitors a day, which without the adjustments can lead to a crash.

With the old PHP handler, the adjustments were made under: /opt/plesk/php/8.0/etc/php-fpm.conf. This no longer works when PHP-FPM is selected as dedicated.

STEPS TO REPRODUCE

  • Create a website
  • Change the PHP version to a dedicated version. For example: Dedicated FPM application served by Apache
  • Now the following file is responsible for the PHP handler: /var/www/vhosts/system/domain/etc/php-fpm.conf. (But this is 100% generated by Plesk).

ACTUAL RESULT

In the file: /var/www/vhosts/system/domain/etc/php-fpm.conf, no individual customization can be made in the [GLOBAL] section.

EXPECTED RESULT

A possibility to customize the [GLOBAL] area.

ANY ADDITIONAL INFORMATION

More information: Question - Customize [global] section of /system/domain/etc/php-fpm.conf

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Plesk allows changing only settings specified under [php-fpm-pool-settings] section for both shared and dedicated php-fpm pools. Settings under [global] section are hardcoded and unmanaged.
With the old PHP handler, the adjustments were made under: /opt/plesk/php/8.0/etc/php-fpm.conf.
Plesk does not guarantee that this file will not be overwritten during some update and custom settings will not be lost.

Management of settings under _[global] _ section is new functionality. A new feature request should be created Feature Suggestions: Top (1995 ideas) – Your Ideas for Plesk

If something goes wrong with php-fpm application pool due to default global settings you can create a ticket to Plesk Technical Support. Maybe some default settings should be adjusted on the Plesk side.
 
@IgorG I understand your approach and yes, the file is not regularly customizable by Plesk in [GLOBAL]. But it is customizable at that point. On the other side, the files under /var/www/vhosts/system/domain/etc/php-fpm.conf are not customizable at all, because these files are modified throughout. Theoretically we can build a workaround, but I think this was integrated very unfortunate by Plesk and should be reworked.
 
Back
Top