update php-fpm defaults; update paths for current stable php-7.3; read froxlor default php.ini from file rather then using phpconfig with id=1; fixes #796
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
74
templates/misc/php/default.ini.php
Normal file
74
templates/misc/php/default.ini.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
$phpini = <<<EOINI
|
||||
allow_url_fopen = Off
|
||||
allow_url_include = Off
|
||||
auto_append_file =
|
||||
auto_globals_jit = On
|
||||
auto_prepend_file =
|
||||
bcmath.scale = 0
|
||||
cli_server.color = On
|
||||
default_charset = "UTF-8"
|
||||
default_mimetype = "text/html"
|
||||
default_socket_timeout = 60
|
||||
asp_tags = Off
|
||||
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,curl_exec,curl_multi_exec,exec,parse_ini_file,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,system
|
||||
display_errors = Off
|
||||
display_startup_errors = Off
|
||||
doc_root =
|
||||
enable_dl = Off
|
||||
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
|
||||
expose_php = Off
|
||||
file_uploads = On
|
||||
html_errors = On
|
||||
ignore_repeated_errors = Off
|
||||
ignore_repeated_source = Off
|
||||
include_path = ".:{PEAR_DIR}"
|
||||
implicit_flush = Off
|
||||
ldap.max_links = -1
|
||||
log_errors = On
|
||||
log_errors_max_len = 1024
|
||||
mail.add_x_header = Off
|
||||
max_execution_time = 30
|
||||
max_file_uploads = 20
|
||||
max_input_time = 60
|
||||
memory_limit = 128M
|
||||
{OPEN_BASEDIR_C}open_basedir = "{OPEN_BASEDIR}"
|
||||
output_buffering = 4096
|
||||
post_max_size = 16M
|
||||
precision = 14
|
||||
register_argc_argv = Off
|
||||
report_memleaks = On
|
||||
request_order = "GP"
|
||||
sendmail_path = "/usr/sbin/sendmail -t -i -f {CUSTOMER_EMAIL}"
|
||||
serialize_precision = -1
|
||||
session.auto_start = 0
|
||||
session.cache_expire = 180
|
||||
session.cache_limiter = nocache
|
||||
session.cookie_domain =
|
||||
session.cookie_httponly =
|
||||
session.cookie_lifetime = 0
|
||||
session.cookie_path = /
|
||||
session.cookie_samesite =
|
||||
session.gc_divisor = 1000
|
||||
session.gc_maxlifetime = 1440
|
||||
session.gc_probability = 0
|
||||
session.name = PHPSESSID
|
||||
session.referer_check =
|
||||
session.save_handler = files
|
||||
session.save_path = "{TMP_DIR}"
|
||||
session.serialize_handler = php
|
||||
session.sid_bits_per_character = 5
|
||||
session.sid_length = 26
|
||||
session.trans_sid_tags = "a=href,area=href,frame=src,form="
|
||||
session.use_cookies = 1
|
||||
session.use_only_cookies = 1
|
||||
session.use_strict_mode = 0
|
||||
session.use_trans_sid = 0
|
||||
short_open_tag = On
|
||||
upload_max_filesize = 32M
|
||||
upload_tmp_dir = "{TMP_DIR}"
|
||||
variables_order = "GPCS"
|
||||
opcache.restrict_api = "{DOCUMENT_ROOT}"
|
||||
EOINI;
|
||||
|
||||
define('DEFAULT_PHPINI', $phpini);
|
||||
Reference in New Issue
Block a user