php-fpm global config file

vacancy

Verified User
Joined
Jul 5, 2019
Messages
29
Hello there

I just joined the Directadmin family.

Is there a global conf file that we can edit php-fpm performance settings for all users and all php versions?

How do we ensure that the custom settings we make on this file do not change?
 
You can just define something like the following in /usr/local/directadmin/data/templates/custom/php-fpm.conf.custom1 (https://www.directadmin.com/features.php?id=2335):
Code:
|?MAX_CHILDREN=20|
|?MAX_REQUESTS=50|

Then just simply do this to update the confs:
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

If it's something else you'd like to customize in /usr/local/directadmin/data/templates/php-fpm.conf, you may just copy the file to /usr/local/directadmin/data/templates/custom/php-fpm.conf, do the changes needed, and that file will be used as template. However, pre/post CUSTOM sections are always recommended, so that you would still be able to get template updates, if there are any :)

If you'd like to apply it per-user, simply use "Custom HTTPd Configuration" from admin level. Same way of overwriting tokens there, just post the token overrides (or your new options) in custom blocks.
 
You can just define something like the following in /usr/local/directadmin/data/templates/custom/php-fpm.conf.custom1 (https://www.directadmin.com/features.php?id=2335):
Code:
|?MAX_CHILDREN=20|
|?MAX_REQUESTS=50|

Then just simply do this to update the confs:
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

If it's something else you'd like to customize in /usr/local/directadmin/data/templates/php-fpm.conf, you may just copy the file to /usr/local/directadmin/data/templates/custom/php-fpm.conf, do the changes needed, and that file will be used as template. However, pre/post CUSTOM sections are always recommended, so that you would still be able to get template updates, if there are any :)

If you'd like to apply it per-user, simply use "Custom HTTPd Configuration" from admin level. Same way of overwriting tokens there, just post the token overrides (or your new options) in custom blocks.

Thank you for your answer.

In the Custom file, only | | MAX_CHILDREN = 25 | and |? MAX_REQUESTS = 1000 | codes are working.

I want to change the following codes, but when I add them to the custom file, both the old and new codes appear twice, and php-fpm cannot be started.

"pm_process_idle_timeout = 10"

Also, when I add the codes that are not in the default conf file as custom, the codes are added 2 times again.

"pm_start_servers = 4"
"pm_min_spare_servers = 4"
"pm_max_spare_servers = 8"
"request_terminate_timeout: 300s"
etc.
 
Did you find a solution for this?
I also don`t know how to change this in the custom field
except
|?MAX_CHILDREN=100|
 
Back
Top