Skip to content

Commit 10ee92c

Browse files
committed
fix: ensure proper Xdebug activation by mounting php.ini with higher priority
Modifies the volume mount point for the PHP configuration file to use a numbered prefix (99-custom.ini) in the target path. This change ensures that our custom PHP configuration is loaded last in the alphabetical processing order of PHP's configuration files, giving it precedence over any automatically generated configuration files. This fix resolves the issue where Xdebug was being installed but not properly activated in the PHP environment, as our custom settings now take priority over any conflicting defaults. This approach follows standard practice in PHP configuration management for controlling loading order priorities.
1 parent 067c15b commit 10ee92c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ services:
6868
PHP_TARGET: ${PHP_TARGET:-dev}
6969
restart: always
7070
volumes:
71-
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/custom.ini"
71+
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/99-custom.ini"
7272
- "./web:/var/www/html"
7373
environment:
7474
- PHP_DISPLAY_ERRORS=${PHP_DISPLAY_ERRORS:-1}

0 commit comments

Comments
 (0)