Hi,
I’m trying to increase the upload size for posts and media on my WordPress Bedrock instance, but so far, I haven’t had any success. Here’s what I’ve tried:
- Changed Environment Variables in
config/application.php
:
Config::define('WP_MEMORY_LIMIT', '50M');
Config::define('WP_MAX_MEMORY_LIMIT', '50M');
Config::define('MEMORY_LIMIT', '50M');
Config::define('MAX_MEMORY_LIMIT', '50M');
- Updated
.user.ini
andphp.ini
in both the wp and wp-admin directories. - Modified PHP settings by running the following command:
php -i | grep ini
to locatephp.ini
- Set:
upload_max_filesize = 50M
post_max_size = 50M
Despite these changes, none of them have resolved the issue.
I came across a similar discussion on this forum thread, but using a plugin to increase the file size limit is not an option for me.
Has anyone else encountered this issue or know of any other possible solutions?
Additional Context:
I deployed this Bedrock WordPress application following the instructions from the Fly.io tutorial and have my MySQL instance hosted on Fly.io as well. This is a Bedrock WordPress application.
I came across a similar discussion on this forum thread, but using a plugin to increase the file size limit is not an option for me.
Thanks!