-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp.ini
More file actions
32 lines (27 loc) · 1.14 KB
/
php.ini
File metadata and controls
32 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
; Error reporting
error_reporting = ${PHP_ERROR_REPORTING:-E_ALL}
display_errors = On
display_startup_errors = On
html_errors = Off
max_execution_time = ${PHP_MAX_EXECUTION_TIME:-300}
memory_limit = ${PHP_MEMORY_LIMIT:-2G}
upload_max_filesize = ${PHP_UPLOAD_MAX_FILESIZE:-128M}
post_max_size = ${PHP_POST_MAX_SIZE:-${PHP_UPLOAD_MAX_FILESIZE:-128M}}
variables_order = EGPCS
# The default PHP Dockerfile increases this limit to 8192, which isn't supported
# by nginx, which has a hard-coded limit of 2048.
# See https://stackoverflow.com/a/57983215/2532203
[global]
log_limit = 2000
[opcache]
opcache.enable = ${PHP_OPCACHE_ENABLE:-1}
opcache.enable_cli = ${PHP_OPCACHE_ENABLE_CLI:-${PHP_OPCACHE_ENABLE:-1}}
opcache.revalidate_freq = 0
opcache.validate_timestamps = ${PHP_OPCACHE_VALIDATE_TIMESTAMPS:-0}
opcache.max_accelerated_files = ${PHP_OPCACHE_MAX_ACCELERATED_FILES:-10000}
opcache.memory_consumption = ${PHP_OPCACHE_MEMORY_CONSUMPTION:-192}
opcache.max_wasted_percentage = ${PHP_OPCACHE_MAX_WASTED_PERCENTAGE:-10}
opcache.interned_strings_buffer = 16
opcache.fast_shutdown = 1
# This prevents timeout issues when connecting to redis.
default_socket_timeout = -1