Page MenuHomePhabricator

configure default php.ini?
Open, Needs TriagePublic

Description

According to the upstream php image:

This image ships with the default php.ini-development and php.ini-production configuration files.

It is strongly recommended to use the production config for images used in production environments!

RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

However, this image does not do that and leaves the two files untouched. Should it be setting up a default ini file, or at least documenting that it's advised?

Event Timeline

AdamMillerchip renamed this task from php.ini? to configure default php.ini?.Jan 19 2021, 6:22 PM

Hi @AdamMillerchip, thanks for taking the time to report this! Could you please provide a link for the quote, plus a link to "this image"? Thanks in advance.

Sorry for being unclear, I hope I posted in the right place!

I was looking specifically at https://hub.docker.com/_/mediawiki/
Clicking any of the tags there links to the Dockerfile on Github, e.g. latest.
The Readme on that repo says to report bugs here:

Please file bug reports on Phabricator and not on GitHub.

The upstream image I was talking about: https://hub.docker.com/_/php/ that is quoted in the original post.