Adjusting the init script to instead write to php.ini works, but comes at the cost of losing any other settings which have been configured in /usr/local/etc/php/php.ini-production
Because the settings generated by the init script are additive, it probably makes more sense to drop them into /usr/local/etc/php/conf.d/, so that is what this PR does
The current logic reads environment variables and writes them into
/etc/php.d/environment.ini
.The entrypoint then passes
php-fpm
this the parent directory as a config dir:However,
php-fpm
will not readenvironment.ini
. You can confirm this by setting the variables high and creating a large "image" to upload:If you hit the UI, signup and try and upload, you'll receive a PHP error message which includes
The limit is still at 8M.
Checking
php-fpm --help
shows that it's looking for a file calledphp.ini
.Adjusting the init script to instead write to
php.ini
works, but comes at the cost of losing any other settings which have been configured in/usr/local/etc/php/php.ini-production
Because the settings generated by the init script are additive, it probably makes more sense to drop them into
/usr/local/etc/php/conf.d/
, so that is what this PR does