Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Question: How can I turn off allow_url_fopen or load any setting in php.ini #32

Closed
dimitrismitsis opened this issue Nov 21, 2015 · 2 comments

Comments

@dimitrismitsis
Copy link

Hi,

It seems that I can't load the settings placed in conf/php.ini

This is more of a question because I'm probably doing something wrong

I've changed the setting, removed all images, restarted all services but I'm unable to apply the change.

Thanks for your answer in advance!

@dimitrismitsis dimitrismitsis changed the title Can't turn off allow_url_fopen Question: How can I turn off allow_url_fopen or load any setting in php.ini Nov 21, 2015
@sgrover
Copy link

sgrover commented Dec 4, 2015

The php.ini is copied via the Dockerfile. That means if you make a change to the .ini file you'll have to re-apply the Dockerfile. That means rebuilding your image. Do any appropriate backups needed (should be minimal with this setup unless you are doing stuff directly within the container that needs to be saved...). Once you've done that then do the following:

docker-compose stop
docker-compose build
docker-compose start

That should get any new php.ini changes applied.
(Disclaimer I'm not an expert with Docker so may not have this right, but I do a similar process with a dockerized Magento environment when needed, with success...)

@kasperisager
Copy link
Owner

Rebuilding the container is indeed the solution 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants