Uh oh!
There was an error while loading. Please reload this page.
Adjust "wp-config.php" behavior to be skipped if configuration is not provided - #206
Conversation
tianon
commented
Feb 9, 2017
It doesn't help a ton, but it is easier to review at https://github.com/docker-library/wordpress/pull/206/files?w=1 (ignoring whitespace) |
tianon
commented
Feb 9, 2017
Of course, it fails because I'll probably just scrape the variables we need directly from the environment instead in that bit of the script (which is still better than taking them in |
… provided Also, unset "secret" environment variables before starting Apache/FPM to ensure that a stray `phpinfo()` doesn't include secrets from our code.
tianon
commented
Feb 9, 2017
Yay 🍏 |
- `docker`: 1.13.1 - `golang`: remove `wheezy` for 1.8 (docker-library/golang#144), update `1.8-rc` to be explicit about tracking pre-releases (docker-library/golang#145) - `irssi`: remove `VOLUME` (jessfraz/irssi#13) - `postgres`: 9.6.2, 9.3.16, 9.4.11, 9.5.6, 9.2.20, put `docker-entrypoint.sh` explicitly in `PATH` (docker-library/postgres#260) - `wordpress`: update `wp-config.php` handling to only generate/munge configuration upon user request and to unset all related environment variables explicitly (docker-library/wordpress#206)
Spittal
commented
May 16, 2017
Hey this is still an issue for me. Using the any tagged official wordpress image. But, my preferred tag is 7.1-fpm Here's the docker-compose.yml I fail with the error: The image works if I comment out the line |
yosifkit
commented
May 16, 2017
It'll only skip setting config values in |
Spittal
commented
May 17, 2017
Oh I see, thanks for the information. |
Also, unset "secret" environment variables before starting Apache/FPM to ensure that a stray
phpinfo()doesn't include secrets from our code. (cc @thaJeztah)Fixes#135
It's worth noting that WordPress now will also detect the absence of
wp-config.php, and have a short pre-wizard to configure it, so all configuration can be done directly in the browser (which this PR enables by skipping thewp-config.phpbehavior if we don't have one of the specialWORDPRESS_...vars, or an explicitly linkedmysqlcontainer sharing environment variables with us).