docker-php icon indicating copy to clipboard operation
docker-php copied to clipboard

Adding your own "php.ini" needs to be documented

Open jaydrogers opened this issue 2 years ago • 1 comments

🌎 URL

https://release-v3-0.docker-php.pages.dev/docs/guide/changing-common-php-settings

⚡️ Reported By

Jay Rogers

🔎 More details

Browser: Firefox 120 (120.0)

Screen Resolution: 834x1194

Viewport Dimensions: 1302x1280

jaydrogers avatar Dec 04 '23 17:12 jaydrogers

Hi @jaydrogers, it would be nice to have a php.ini file from the official PHP image and not modify it. You can override parameters by adding a file such as $PHP_INI_DIR/etc/conf.d/my-parameters.ini

pbromb avatar Dec 30 '23 17:12 pbromb

Thanks for the suggestion on the best practices @pbromb!

I made that change here: https://github.com/serversideup/docker-php/commit/ce326111818a44a616d8b75ae711a02acf93cb2e

I'm working on improving the docs for adding your own PHP ini as well

jaydrogers avatar Apr 18 '24 14:04 jaydrogers

This has been made available on this PR:

  • https://github.com/serversideup/docker-php/pull/311

The specific link to the preview site is here: https://improve-file-permissions.docker-php.pages.dev/docs/customizing-the-image/changing-common-php-settings#setting-your-own-phpini

jaydrogers avatar Apr 18 '24 20:04 jaydrogers