Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to load app's ini files after all other extensions are loaded #617

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leroy0211
Copy link

@leroy0211 leroy0211 commented Apr 25, 2024

Fixes #538 by specifying a different conf.d directory (app.conf.d) for loading the ini files.

Renamed the files to numerical prefixes so they are loaded in the correct order. Default first, then environment specific.

After running a dev build, this is the output of php --ini

Configuration File (php.ini) Path: /usr/local/etc/php
Loaded Configuration File:         /usr/local/etc/php/php.ini
Scan for additional .ini files in: /usr/local/etc/php/conf.d:/usr/local/etc/php/app.conf.d
Additional .ini files parsed:      /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini,
/usr/local/etc/php/conf.d/docker-php-ext-intl.ini,
/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,
/usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini,
/usr/local/etc/php/conf.d/docker-php-ext-zip.ini,
/usr/local/etc/php/app.conf.d/10-app.ini,
/usr/local/etc/php/app.conf.d/20-app.dev.ini

Dockerfile Outdated Show resolved Hide resolved
Co-authored-by: Borislav Kosun <kosun.b@yandex.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

php config file order
3 participants