Files
CORXN/php.ini

54 lines
1.0 KiB
INI
Raw Permalink Normal View History

[PHP]
2026-03-20 08:49:15 -07:00
; Performance
max_execution_time = 30
2026-03-20 08:49:15 -07:00
max_input_time = 60
memory_limit = 512M
; Uploads
2025-03-15 00:38:49 -07:00
upload_max_filesize = 100M
post_max_size = 100M
2026-03-20 08:49:15 -07:00
; Timezone
2025-03-15 00:38:49 -07:00
date.timezone = America/Vancouver
2026-03-20 08:49:15 -07:00
; Errors (production-safe)
display_errors = Off
display_startup_errors = Off
2025-03-15 00:38:49 -07:00
log_errors = On
2026-03-20 08:49:15 -07:00
error_log = /proc/self/fd/2
2026-03-20 08:49:15 -07:00
; Sessions
2025-03-15 00:38:49 -07:00
session.save_path = "/var/lib/php/sessions"
session.gc_maxlifetime = 1440
session.cookie_lifetime = 0
session.use_strict_mode = 1
2026-03-20 08:49:15 -07:00
; File handling
2025-03-15 00:38:49 -07:00
file_uploads = On
allow_url_fopen = On
2026-03-20 08:49:15 -07:00
; Realpath cache
realpath_cache_size = 4096k
realpath_cache_ttl = 120
2026-03-20 08:49:15 -07:00
; cURL
2025-03-15 00:38:49 -07:00
curl.cainfo = "/etc/ssl/certs/ca-certificates.crt"
2026-03-20 08:49:15 -07:00
; Mail (optional)
2025-03-15 00:38:49 -07:00
SMTP = localhost
sendmail_path = /usr/sbin/sendmail -t -i
2026-03-20 08:49:15 -07:00
; 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"