parent
a0018ed841
commit
1997dd3bcb
7 changed files with 32 additions and 0 deletions
@ -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 @@ |
||||
[php{ $PHP_VERSION }] |
@ -0,0 +1,2 @@ |
||||
user = www |
||||
group = www |
@ -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…
Reference in new issue