147 lines
2.6 KiB
INI
147 lines
2.6 KiB
INI
[PHP]
|
|
; 基本设置
|
|
engine = On
|
|
short_open_tag = Off
|
|
precision = 14
|
|
output_buffering = 4096
|
|
zlib.output_compression = Off
|
|
implicit_flush = Off
|
|
unserialize_callback_func =
|
|
serialize_precision = -1
|
|
disable_functions =
|
|
disable_classes =
|
|
zend.enable_gc = On
|
|
|
|
; 错误报告
|
|
expose_php = Off
|
|
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
|
|
display_errors = Off
|
|
display_startup_errors = Off
|
|
log_errors = On
|
|
log_errors_max_len = 1024
|
|
ignore_repeated_errors = Off
|
|
ignore_repeated_source = Off
|
|
report_memleaks = On
|
|
html_errors = On
|
|
error_log = /var/log/php-fpm/error.log
|
|
|
|
; 资源限制
|
|
max_execution_time = 30
|
|
max_input_time = 60
|
|
memory_limit = 256M
|
|
|
|
; 数据处理
|
|
post_max_size = 100M
|
|
auto_prepend_file =
|
|
auto_append_file =
|
|
default_mimetype = "text/html"
|
|
default_charset = "UTF-8"
|
|
|
|
; 文件上传
|
|
file_uploads = On
|
|
upload_max_filesize = 100M
|
|
max_file_uploads = 20
|
|
|
|
; Fopen wrappers
|
|
allow_url_fopen = On
|
|
allow_url_include = Off
|
|
default_socket_timeout = 60
|
|
|
|
; 动态扩展
|
|
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20240924"
|
|
|
|
; 模块设置
|
|
[CLI Server]
|
|
cli_server.color = On
|
|
|
|
[Date]
|
|
date.timezone = Asia/Shanghai
|
|
|
|
[filter]
|
|
filter.default = unsafe_raw
|
|
filter.default_flags =
|
|
|
|
[iconv]
|
|
iconv.input_encoding = UTF-8
|
|
iconv.internal_encoding = UTF-8
|
|
iconv.output_encoding = UTF-8
|
|
|
|
[intl]
|
|
intl.default_locale =
|
|
intl.error_level = E_WARNING
|
|
intl.use_exceptions = 0
|
|
|
|
[sqlite3]
|
|
sqlite3.extension_dir =
|
|
|
|
[Pcre]
|
|
pcre.backtrack_limit = 100000
|
|
pcre.recursion_limit = 100000
|
|
pcre.jit = 1
|
|
|
|
[Pdo]
|
|
pdo_mysql.default_socket =
|
|
|
|
[Pdo_mysql]
|
|
pdo_mysql.default_socket =
|
|
|
|
[Phar]
|
|
phar.readonly = On
|
|
phar.require_hash = On
|
|
phar.cache_list =
|
|
|
|
[mail function]
|
|
SMTP = localhost
|
|
smtp_port = 25
|
|
mail.add_x_header = Off
|
|
|
|
[ODBC]
|
|
odbc.allow_persistent = On
|
|
odbc.check_persistent = On
|
|
odbc.max_persistent = -1
|
|
odbc.max_links = -1
|
|
odbc.defaultlrl = 4096
|
|
odbc.defaultbinmode = 1
|
|
|
|
[Interbase]
|
|
ibase.allow_persistent = 1
|
|
ibase.max_persistent = -1
|
|
ibase.max_links = -1
|
|
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
|
|
ibase.dateformat = "%Y-%m-%d"
|
|
ibase.timeformat = "%H:%M:%S"
|
|
|
|
[MySQLi]
|
|
mysqli.max_persistent = -1
|
|
mysqli.allow_persistent = On
|
|
mysqli.max_links = -1
|
|
mysqli.default_port = 3306
|
|
mysqli.default_socket =
|
|
mysqli.default_host =
|
|
mysqli.default_user =
|
|
mysqli.default_pw =
|
|
mysqli.reconnect = Off
|
|
|
|
[mysqlnd]
|
|
mysqlnd.collect_statistics = On
|
|
mysqlnd.collect_memory_statistics = Off
|
|
|
|
[OPcache]
|
|
opcache.enable = 1
|
|
opcache.enable_cli = 1
|
|
opcache.memory_consumption = 128
|
|
opcache.interned_strings_buffer = 8
|
|
opcache.max_accelerated_files = 4000
|
|
opcache.revalidate_freq = 2
|
|
opcache.fast_shutdown = 1
|
|
|
|
[curl]
|
|
curl.cainfo =
|
|
|
|
[openssl]
|
|
openssl.cafile =
|
|
openssl.capath =
|
|
|
|
[ffi]
|
|
ffi.enable = "preload"
|