Increase the max file upload size in Wordpress
Increase the maximum file upload size in Wordpress easily when running wordpress with their official docker container.
The first problem most people face after their custom Wordpress installation is the file upload limit.
There are various ways you can use to fix it. Following is what I use and which seems to work always. I use the Wordpress docker container, so your mileage may vary if you are using manual installation.
The htaccess method
For me, putting the following entry into the .htaccess file in the wordpress installation folder seems to fix the issue.
php_value upload_max_filesize 1000M php_value post_max_size 2000M php_value max_execution_time 300 php_value max_input_time 300 php_value memory_limit 3000M php_value file_uploads On
I used the WP file manager and edited this file. This is fine since I had deployed it in AWS ECS Fargate with EFS storage backend and hence the file change will persist.
If you are only putting only selected folders to persistent storage instead of the entire document root, then you'll have to make this change at the image level.