CORXN/php.ini

55 lines
1.2 KiB
INI

[PHP]
; Basic PHP settings
max_execution_time = 30
memory_limit = 500M
upload_max_filesize = 100M
post_max_size = 100M
max_input_time = 60
date.timezone = America/Vancouver
; Error handling
display_errors = On
display_startup_errors = On
log_errors = On
error_log = /var/log/php_errors.log
; Session settings
session.save_path = "/var/lib/php/sessions"
session.gc_maxlifetime = 1440
session.cookie_lifetime = 0
session.use_strict_mode = 1
; Realpath cache
realpath_cache_size = 4096k
realpath_cache_ttl = 120
; File upload settings
file_uploads = On
allow_url_fopen = On
; Redis settings (ensure Redis extension is loaded)
extension=redis.so
; mbstring settings (useful for multi-byte encoding handling)
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.http_output = UTF-8
mbstring.detect_order = auto
mbstring.substitute_character = none
; cURL settings
curl.cainfo = "/etc/ssl/certs/ca-certificates.crt"
; SMTP settings (for sending mail, if needed)
SMTP = localhost
sendmail_path = /usr/sbin/sendmail -t -i
; Extension loading
extension=curl
extension=mbstring
extension=redis
extension=xml
extension=mysqli
extension=pdo_mysql
extension=zip