Files
michaelschiemer/docker/php/php.production.ini

37 lines
806 B
INI

; Production PHP Configuration for Custom PHP Framework
[PHP]
; Error handling - Log errors, don't display
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = /var/www/html/storage/logs/php-errors.log
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
; Performance
memory_limit = 256M
max_execution_time = 30
max_input_time = 60
post_max_size = 20M
upload_max_filesize = 20M
; Session
session.save_handler = files
session.save_path = /var/www/html/storage/sessions
session.gc_maxlifetime = 1440
session.cookie_httponly = 1
session.cookie_secure = 1
session.use_strict_mode = 1
; Security
expose_php = Off
allow_url_fopen = On
allow_url_include = Off
; Timezone
date.timezone = Europe/Berlin
; Realpath cache (performance)
realpath_cache_size = 4M
realpath_cache_ttl = 600