Upgraded to Trixie and php8.5.3

This commit is contained in:
2026-03-20 08:49:15 -07:00
parent a5deb07a66
commit 546c49767f
7 changed files with 173 additions and 91 deletions

64
php.ini
View File

@@ -1,55 +1,53 @@
[PHP]
; Basic PHP settings
; Performance
max_execution_time = 30
memory_limit = 500M
max_input_time = 60
memory_limit = 512M
; Uploads
upload_max_filesize = 100M
post_max_size = 100M
max_input_time = 60
; Timezone
date.timezone = America/Vancouver
; Error handling
display_errors = On
display_startup_errors = On
; Errors (production-safe)
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = /var/log/php_errors.log
error_log = /proc/self/fd/2
; Session settings
; 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
; 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
curl.cainfo = "/etc/ssl/certs/ca-certificates.crt"
; SMTP settings (for sending mail, if needed)
; Mail (optional)
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
; 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"