50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
{
|
|
if ($PHP_VERSION eq '71'){
|
|
if ((${'tt-rss'}{status} || 'disabled') eq 'enabled'){
|
|
my $id = 'tt-rss;
|
|
$OUT .=<<_EOF;
|
|
|
|
[php$PHP_VERSION-$id]
|
|
user = www
|
|
group = www
|
|
listen.owner = root
|
|
listen.group = www
|
|
listen.mode = 0660
|
|
listen = /var/run/php-fpm/php$PHP_VERSION-$id.sock
|
|
pm = dynamic
|
|
pm.max_children = 15
|
|
pm.start_servers = 3
|
|
pm.min_spare_servers = 3
|
|
pm.max_spare_servers = 4
|
|
pm.max_requests = 5000
|
|
request_terminate_timeout = 30
|
|
php_admin_value[session.save_path] = /var/lib/php/$id/session
|
|
php_admin_value[opcache.file_cache] = /var/lib/php/$id/opcache
|
|
php_admin_value[upload_tmp_dir] = /var/lib/php/$id/tmp
|
|
php_admin_value[error_log] = /var/log/php/$id/error.log
|
|
slowlog = /var/log/php/$id/slow.log
|
|
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f php@{ $DomainName }
|
|
php_admin_flag[display_errors] = off
|
|
php_admin_flag[log_errors] = on
|
|
php_admin_value[error_log] = syslog
|
|
php_admin_value[memory_limit] = 128M
|
|
php_admin_value[max_execution_time] = 30
|
|
php_admin_value[post_max_size] = 2M
|
|
php_admin_value[upload_max_filesize] = 1M
|
|
php_admin_value[max_input_time] = 60
|
|
php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd
|
|
php_admin_value[open_basedir] = /usr/share/tt-rss:/var/lock/tt-rss:/var/cache/tt-rss:/var/lib/php/tt-rss
|
|
php_admin_flag[allow_url_fopen] = on
|
|
php_admin_flag[file_upload] = off
|
|
php_admin_flag[session.cookie_httponly] = on
|
|
php_admin_flag[allow_url_include] = off
|
|
php_admin_value[session.save_handler] = files
|
|
|
|
_EOF
|
|
}
|
|
else{
|
|
$OUT .= '; Tiny Tiny RSS is disabled';
|
|
}
|
|
}
|
|
}
|