Add templates for default PHP pool

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 years ago
parent a0018ed841
commit 1997dd3bcb
  1. 2
      root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/php-fpm.d/www.conf
  2. 1
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default00Header
  3. 2
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default10User
  4. 4
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default20Listen
  5. 7
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default30Childrens
  6. 10
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default40Paths
  7. 6
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings

@ -0,0 +1,2 @@
TEMPLATE_PATH="/etc/php-fpm.d/www.conf"
MORE_DATA={ PHP_VERSION => 56, PID_DIR => "/opt/remi/php56/root/var/run/php-fpm", FPM_POOL_DIR => "/opt/remi/php56/root/etc/php-fpm.d" }

@ -0,0 +1,4 @@
listen.owner = root
listen.group = www
listen.mode = 0660
listen = /var/run/php-fpm/php{ $PHP_VERSION }.sock

@ -0,0 +1,7 @@
pm = dynamic
pm.max_children = 15
pm.start_servers = 3
pm.min_spare_servers = 3
pm.max_spare_servers = 6
pm.max_requests = 5000
request_terminate_timeout = 5m

@ -0,0 +1,10 @@
{
my $var_lib = ( $PHP_VERSION eq '56' ) ? '/opt/remi/php56/root/var/lib/php' : '/var/opt/remi/php' . $PHP_VERSION . '/lib/php';
$OUT .=<<_EOF;
php_admin_value[session.save_path] = $var_lib/session
php_value[soap.wsdl_cache_dir] = $var_lib/wsdlcache
php_value[opcache.file_cache] = $var_lib/opcache
_EOF
}
php_admin_value[error_log] = /var/log/php/php{ $PHP_VERSION }/error.log
slowlog = /var/log/php/php{ $PHP_VERSION }/slow.log

@ -0,0 +1,6 @@
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName }
php_flag[display_errors] = off
php_admin_flag[log_errors] = on
php_admin_value[error_log] = syslog
php_admin_value[memory_limit] = 128M
php_value[session.save_handler] = files
Loading…
Cancel
Save