parent
a21a1117c2
commit
e2c18a4b78
3 changed files with 67 additions and 9 deletions
@ -0,0 +1,45 @@ |
|||||||
|
{ |
||||||
|
|
||||||
|
if (($dl{status'} || 'disabled) eq 'enabled'){ |
||||||
|
$OUT .=<<_EOF; |
||||||
|
[php71-dl] |
||||||
|
user = www |
||||||
|
group = www |
||||||
|
listen.owner = root |
||||||
|
listen.group = www |
||||||
|
listen.mode = 0660 |
||||||
|
listen = /var/run/php-fpm/php71-dl.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 |
||||||
|
php_admin_value[session.save_path] = /var/lib/php/dl/session |
||||||
|
php_admin_value[opcache.file_cache] = /var/lib/php/dl/opcache |
||||||
|
php_admin_value[upload_tmp_dir] = /var/lib/php/dl/tmp |
||||||
|
php_admin_value[error_log] = /var/log/php/dl/error.log |
||||||
|
slowlog = /var/log/php/dl/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] = 0 |
||||||
|
php_admin_value[post_max_size] = { $dl{MaxUploadSize} || '4096' }M |
||||||
|
php_admin_value[upload_max_filesize] = { $dl{MaxUploadSize} || '4096' }M |
||||||
|
php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd |
||||||
|
php_admin_value[open_basedir] = /usr/share/dl:/etc/dl.php:/var/lib/dl:/var/log/dl.log |
||||||
|
php_admin_flag[allow_url_fopen] = off |
||||||
|
php_admin_flag[file_upload] = on |
||||||
|
php_admin_flag[session.cookie_httponly] = on |
||||||
|
php_admin_flag[allow_url_include] = off |
||||||
|
php_admin_value[session.save_handler] = files |
||||||
|
php_admin_value[output_buffering] = off |
||||||
|
_EOF |
||||||
|
} |
||||||
|
else{ |
||||||
|
$OUT .= '; Dl is disabled'; |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue