Files
api/services/php/php.ini
T
Jeppe Bundgaard 8c8de541be - Update Nginx logging with structured JSON and standard combined format for Elastic integration.
- Add new upstream PHP-FPM servers to Nginx configuration for enhanced load balancing.
- Introduce Elastic APM PHP agent in `php.ini` and update Dockerfile for better dependency management.
- Secure Kibana and Elasticsearch connections in Metricbeat/Filebeat configurations with credentials.
- Remove unused PHP dependencies from `composer.json` and `composer.lock`.
2026-02-16 10:58:50 +01:00

17 lines
616 B
INI

; PHP custom configuration for sessions and logging
; Store sessions in Redis so multiple PHP-FPM replicas can share state
session.save_handler = redis
; Add auth=PASSWORD if you set a password on Redis, and adjust database if needed
session.save_path = "tcp://redis:6379?database=0"
; Logging
log_errors = On
error_log = /var/log/php/error.log
; Elastic APM PHP agent
; The extension is installed via apt (elastic-apm-php)
extension=elastic_apm.so
; Optional bootstrap (enables automatic instrumentation where supported)
;elastic_apm.bootstrap_php_part_file=/opt/elastic/apm-agent-php/src/bootstrap_php_part.php