Files
CORXN/php.ini

54 lines
1.0 KiB
INI

[PHP]
; Performance
max_execution_time = 30
max_input_time = 60
memory_limit = 512M
; Uploads
upload_max_filesize = 100M
post_max_size = 100M
; Timezone
date.timezone = America/Vancouver
; Errors (production-safe)
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = /proc/self/fd/2
; Sessions
session.save_path = "/var/lib/php/sessions"
session.gc_maxlifetime = 1440
session.cookie_lifetime = 0
session.use_strict_mode = 1
; File handling
file_uploads = On
allow_url_fopen = On
; Realpath cache
realpath_cache_size = 4096k
realpath_cache_ttl = 120
; cURL
curl.cainfo = "/etc/ssl/certs/ca-certificates.crt"
; Mail (optional)
SMTP = localhost
sendmail_path = /usr/sbin/sendmail -t -i
; OPcache (IMPORTANT)
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=192
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0
opcache.revalidate_freq=0
opcache.fast_shutdown=1
; Redis
session.save_handler = redis
session.save_path = "tcp://redis:6379"