Overload /etc/php/8.2/fpm/pool.d/cloud.mydomain.com.conf

Hi!

Here is my /etc/php/8.2/fpm/pool.d/cloud.mydomain.com.conf

# cat /etc/php/8.2/fpm/pool.d/cloud.mydomain.com.conf

; origin-src: deb/php-fpm/multiphp.tpl
;#=========================================================================#
;# Default Web Domain Template                                             #
;# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS   #
;# 
      #
;#=========================================================================#

[cloud.mydomain.com]
listen = /run/php/php8.2-fpm-cloud.mydomain.com.sock
listen.owner = myuser
listen.group = www-data
listen.mode = 0660

user = myuser
group = myuser

pm = ondemand
pm.max_children = 8
pm.max_requests = 4000
pm.process_idle_timeout = 10s
pm.status_path = /status

php_admin_value[upload_tmp_dir] = /home/myuser/tmp
php_admin_value[session.save_path] = /home/myuser/tmp
php_admin_value[open_basedir] = /home/myuser/.composer:/home/myuser/web/cloud.mydomain.com/public_html:/home/myuser/web/cloud.mydomain.com/private:/home/myuser/web/cloud.mydomain.com/public_shtml:/home/myuser/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]

env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /home/myuser/tmp
env[TMPDIR] = /home/myuser/tmp
env[TEMP] = /home/myuser/tmp

I should remplace pm.max_children = 8 to pm.max_children = 20

How can I do?

Thanks.

You need to create a new PHP template and assign it to your web domain.

For example, if you are using PHP 8.2 for your site:

cd /usr/local/hestia/data/templates/web/php-fpm/
cp PHP-8_2.tpl floown-PHP-8.2.tlp

Modify the new template to fit your needs and after that, assign the template floown-PHP-8.2 to your web domain.

1 Like

Perfect. Thanks.

2 Likes