WordPress Site Migration Issue with Max Upload Size

I ran into an issue when attempting to migrate a WordPress site from local to a new AWS Lightsail instance using the popular All-in-One WP Migration plugin.

Normally this plugin works great… use it to perform the usual Export and then Upload / Import it onto the new site. This time, not so much.

I found that the plugin on the new instance was showing: Maximum upload file size: 80 MB. My import was larger.

For me, after some googling, the solution on the new AWS Lightsail WordPress server was to:

sudo vi /opt/binami/php/etc/php.ini

Modify these two entries:

post_max_size = 150M

upload_max_filesize = 150M


And then, restart with:
sudo /opt/bitnami/ctlscript.sh restart

After the above, the All-in-One WP Migration plugin performed the import flawlessly, completing the migration.

I was fortunate to find an AWS Knowledge Center article detailing the solution.

Leave a Reply

Your email address will not be published. Required fields are marked *