-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdev-php.ini
More file actions
41 lines (38 loc) · 1.3 KB
/
dev-php.ini
File metadata and controls
41 lines (38 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
; Development PHP/Xdebug overrides for the Docker WordPress environment.
; This file is copied into the image for standalone builds and bind-mounted by
; docker-compose during local development so you can edit it without rebuilding.
;
; After editing this file, apply changes with:
; make reload-php
; Fallback (if make is unavailable):
; docker compose exec web apache2ctl -k graceful
; If a graceful reload fails, restart the web service:
; docker compose restart web
;
; Notes:
; - In this WordPress Apache image, PHP runs inside Apache (mod_php), so an
; Apache reload/restart is enough for ini changes; rebuilding is not needed.
; - A full container rebuild is only needed when changing the Docker image
; itself (for example, installing extensions).
[PHP]
memory_limit = 512M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
max_input_time = 300
display_errors = On
error_reporting = E_ALL
log_errors = On
error_log = /var/log/php_errors.log
[xdebug]
xdebug.mode = develop,debug
xdebug.start_with_request = yes
xdebug.client_host = host.docker.internal
xdebug.client_port = 9003
xdebug.idekey = PHPSTORM
xdebug.log = /tmp/xdebug.log
xdebug.log_level = 7
xdebug.discover_client_host = false
xdebug.var_display_max_depth = 5
xdebug.var_display_max_children = 128
xdebug.var_display_max_data = 512