php: Entferne ungenutzte Abschnitte aus php.ini
This commit is contained in:
parent
4a7f8f212c
commit
cf112b7cc1
2 changed files with 24 additions and 19 deletions
21
templates/sao-fpm.ini.j2
Normal file
21
templates/sao-fpm.ini.j2
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
upload_max_filesize = 15M
|
||||||
|
post_max_size = 15M
|
||||||
|
memory_limit = 192M
|
||||||
|
max_execution_time = 300
|
||||||
|
|
||||||
|
date.timezone = Europe/Berlin
|
||||||
|
default_charset = "UTF-8"
|
||||||
|
|
||||||
|
;Upload-Fortschritt
|
||||||
|
apc.rfc1867 = 1
|
||||||
|
|
||||||
|
{% if inventory_hostname == "wwwusers.sao" %}
|
||||||
|
error_log = /var/log/php.log
|
||||||
|
{% endif %}
|
||||||
|
display_errors = Off
|
||||||
|
|
||||||
|
;Empfohlene Einstellungen (pcc)
|
||||||
|
allow_url_fopen = Off
|
||||||
|
assert.active = Off
|
||||||
|
mail.add_x_header = Off
|
||||||
|
session.use_strict_mode = 1
|
|
@ -1,16 +1,7 @@
|
||||||
{% if inventory_hostname == "wwwusers.sao" %}
|
|
||||||
file_uploads = on
|
|
||||||
max_execution_time=120
|
|
||||||
max_input_time=120
|
|
||||||
post_max_size=16M
|
|
||||||
upload_max_filesize = 16M
|
upload_max_filesize = 16M
|
||||||
SMTP=mail-postfix.sao
|
post_max_size = 16M
|
||||||
{% else %}
|
|
||||||
upload_max_filesize = 15M
|
|
||||||
post_max_size = 15M
|
|
||||||
memory_limit = 192M
|
memory_limit = 192M
|
||||||
max_execution_time = 300
|
max_execution_time = 300
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
date.timezone = Europe/Berlin
|
date.timezone = Europe/Berlin
|
||||||
default_charset = "UTF-8"
|
default_charset = "UTF-8"
|
||||||
|
@ -18,17 +9,10 @@ default_charset = "UTF-8"
|
||||||
;Upload-Fortschritt
|
;Upload-Fortschritt
|
||||||
apc.rfc1867 = 1
|
apc.rfc1867 = 1
|
||||||
|
|
||||||
{% if inventory_hostname == "webmail-horde.sao" %}
|
{% if inventory_hostname == "kameradisten.ramus" or inventory_hostname == "kameradisten.ramus" %}
|
||||||
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_exec,passthru,system,proc_get_status,proc_close,proc_nice,proc_terminate,proc_open,curl_ini,parse_ini_file,show_source,dl,symlink,mail,system_exec,exec,shell_exec,phpinfo
|
|
||||||
{% elif inventory_hostname == "wwwusers.sao" %}
|
|
||||||
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_exec,passthru,system,proc_get_status,proc_close,proc_nice,proc_terminate,proc_open,curl_ini,show_source,dl,symlink,system_exec,exec,shell_exec,phpinfo
|
|
||||||
{% elif inventory_hostname == "kameradisten.ramus" %}
|
|
||||||
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_exec,passthru,system,proc_get_status,proc_close,proc_nice,proc_terminate,proc_open,curl_ini,parse_ini_file,show_source,dl,symlink,system_exec,exec,shell_exec,phpinfo
|
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_exec,passthru,system,proc_get_status,proc_close,proc_nice,proc_terminate,proc_open,curl_ini,parse_ini_file,show_source,dl,symlink,system_exec,exec,shell_exec,phpinfo
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if inventory_hostname == "wwwusers.sao" %}
|
|
||||||
error_log = /var/log/php.log
|
|
||||||
{% endif %}
|
|
||||||
display_errors = Off
|
display_errors = Off
|
||||||
|
|
||||||
;Empfohlene Einstellungen (pcc)
|
;Empfohlene Einstellungen (pcc)
|
||||||
|
|
Loading…
Reference in a new issue