My /etc/php.ini
has the following configuration:
upload_max_filesize = 2M
post_max_size = 32M
And /etc/php.d/app.ini
contains:
upload_max_filesize = 64M
post_max_size = 64M
With PHP 5.4, PHP was giving precedence to the app.ini values over the ones from php.ini; however, since I switched to PHP 5.5, they're not taking precedence anymore:
# php -r "echo ini_get('upload_max_filesize');"
2M
The app.ini
file looks successfully parsed by PHP:
# php --ini
...
/etc/php-5.5.d/app.ini,
...
(/etc/php.d
is a symlink to /etc/php-5.5.d
)
How can I force php.d ini files to take precedence over php.ini?
If that makes any difference, I'm using the AWS Elastic Beanstalk container for PHP 5.5.