diff --git a/root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/php-fpm.d/www.conf b/root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/php-fpm.d/www.conf new file mode 100644 index 0000000..9bc1fc1 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/php-fpm.d/www.conf @@ -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" } diff --git a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default00Header b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default00Header new file mode 100644 index 0000000..750ab32 --- /dev/null +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default00Header @@ -0,0 +1 @@ +[php{ $PHP_VERSION }] diff --git a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default10User b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default10User new file mode 100644 index 0000000..80259cf --- /dev/null +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default10User @@ -0,0 +1,2 @@ +user = www +group = www diff --git a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default20Listen b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default20Listen new file mode 100644 index 0000000..77363da --- /dev/null +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default20Listen @@ -0,0 +1,4 @@ +listen.owner = root +listen.group = www +listen.mode = 0660 +listen = /var/run/php-fpm/php{ $PHP_VERSION }.sock diff --git a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default30Childrens b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default30Childrens new file mode 100644 index 0000000..ac32459 --- /dev/null +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default30Childrens @@ -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 diff --git a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default40Paths b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default40Paths new file mode 100644 index 0000000..3f6d1f4 --- /dev/null +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default40Paths @@ -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 diff --git a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings new file mode 100644 index 0000000..fecf551 --- /dev/null +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default50Settings @@ -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