As a website developer, you’ll be dealing with a lot of backup and migration plugins – checking which ones are good and a viable option in your workflow. At WP Adventure, we love the All in One WP Migration plugin because of its reputation and robust built. As a web design company, when building websites for clients, we tend to create a site locally or on a development server and then migrate the site on the client’s server when done. The All in One WP Migration plugin does a fantastic job of migrating the site using the ‘Import’ function.
However one problem that you may run into is the size limit restriction it places to import a site. Usually, the size restriction is placed at 512 MB – which means that if you try to import a .wpress* file that is over 512 MB, it will ask you to get the paid version of the plugin. From other people on the internet, we’ve come to know that they’ve seen the default size limit of just 128 MB.
It looks like the following (notice the 128 MB upload limit):

However, you’re in luck today as the method below works very well to bypass the size restriction and shows how you can increase the file upload limit placed by All in One WP Migration plugin (whether the size restriction is 128 MB, 256 MB, 512 MB or whatever else).
In this post, we’ll show you 2 methods of increasing the upload limit:
1) Using .htaccess file OR
2) Editing the constants.php file (recommended)
1) Using .htaccess file
First of all, take a backup of your entire WordPress website as is highly recommended to do so before updating, changing or making any edits to your WordPress plugins. If something goes wrong, you always have a recent backup to restore from, so that’s that.
You will require access to the root folder – the one that has the site’s .htaccess file in it.

Open your .htaccess file and place the following code in it:
php_value post_max_size 2048M
php_value memory_limit 4096M
php_value max_execution_time 0
php_value max_input_time 0
The .htaccess file should now look like this:

And that’s it. Once you save the file and refresh the ‘Import’ page in WordPress, All in One WP Migration will display the import size limit as 2 GB (you can change this number to whatever you want in the code above, so if you want it to be 1 GB – simply type 1024M in the code above instead of 2048M)
You should now be able to bypass the size restriction and import a file easily as seen below.

2) Editing the constants.php file (our preferred & recommended method)
The second method is recommended as we’ve noticed that although the first method increases the size limit, the actual import may get stuck at 100% and not continue any further. Also, we usually go this route whenever we want to bypass the restriction, and have had no issues whatsoever so far. As always, take a backup first before proceeding.

Once you’ve uploaded version 6.77 and activated the All in One WP Migration plugin, go to ‘Plugin Editor’ as shown below:

Select the All in One WP Migration from the drop-down list:

Then click on the constants.php file:

Search for line number 284 to look for ‘Max File Size’. It should look something like this:

If you want to change it to 5GB, simply change the above line to:

Click on Update File and save it. Then refresh the Import page for All in One WP and you should see that the size limit for importing files has been increased to 5 GB.

We find that this method works best and doesn’t involve dealing with logging into your cPanel account and playing around with the .htaccess file.
Congratulations! You’ve done it. You can now easily import any file you’d like using this amazing plugin. Migrating your sites are not a hassle anymore!