« Php fpm » : différence entre les versions

De Marmits Wiki
Page créée avec « == toto.conf pool.d == <pre> [test.zotac.conde] user = geo group = geo listen = /run/php/php5.6-test.zotac.conde-fpm.sock listen.owner = www-data listen.group = www-data l… »
 
Ligne 1 : Ligne 1 :
== toto.conf pool.d ==
== toto.conf pool.d ==
<pre>
<pre>
[test.zotac.conde]
[test.local]
user = geo
user = truc
group = geo
group = truc
listen = /run/php/php5.6-test.zotac.conde-fpm.sock
listen = /run/php/php5.6-test.local-fpm.sock
listen.owner = www-data
listen.owner = www-data
listen.group = www-data
listen.group = www-data
listen.mode = 0666
listen.mode = 0666 => Pour pouvoir créer et écrire dans des fichiers/répertoires
pm = dynamic
pm = dynamic
pm.max_children = 5
pm.max_children = 5
Ligne 13 : Ligne 13 :
pm.min_spare_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_spare_servers = 3
access.log = /var/log/fpm-test.zotac.conde-php56.log
access.log = /var/log/fpm-test.local-php56.log
;php_flag[display_errors] = off
;php_flag[display_errors] = off
;php_admin_value[error_log] = /var/log/fpm-test.zotac.conde-php56.log
;php_admin_value[error_log] = /var/log/fpm-test.local-php56.log
;php_admin_value[memory_limit] = 32M
;php_admin_value[memory_limit] = 32M



Version du 13 janvier 2021 à 21:51

toto.conf pool.d

[test.local]
user = truc
group = truc
listen = /run/php/php5.6-test.local-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0666 => Pour pouvoir créer et écrire dans des fichiers/répertoires
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
access.log = /var/log/fpm-test.local-php56.log
;php_flag[display_errors] = off
;php_admin_value[error_log] = /var/log/fpm-test.local-php56.log
;php_admin_value[memory_limit] = 32M