Raise WP Migration Upload Limits

Intermediate
10 min read
Updated: Nov 2026
5 examples
WordPress / PHP / Bitnami

Definition and Usage

The All-in-One WP Migration plugin (ServMask) exports and imports whole WordPress sites. Large imports hit PHP upload limits and sometimes a plugin-side cap.

What is All-in-One WP Migration?

It packages themes, plugins, uploads, and the database into a single archive for migration or backup. Imports can flow from the filesystem, cloud storage, or other extensions depending on what you install.

When do you need this guide?

Use it when the Import screen shows a low ceiling (for example ~80 MB) on a Bitnami WordPress on EC2 stack and your .wpress archive is larger.

What you will change

Raise upload_max_filesize and post_max_size in Bitnami’s php.ini (example: 300 MB), restart the stack, and confirm the new ceiling in wp-admin. Prefer FileZilla or SSH over the dashboard file editor.

Plugin caps vs PHP caps

The effective limit is the minimum of PHP, reverse-proxy body limits, and any cap from the plugin or its ServMask extensions. Raising PHP alone may not lift a software ceiling in the free tier.

Example values only.

Set sizes that match your archive plus headroom. Keep post_max_size at least as large as upload_max_filesize.

Avoid the Plugin File Editor.

Dashboard PHP edits are often disabled, easy to break, and overwritten on updates. Edit php.ini outside the plugin tree.

After imports work.

Store large archives in S3 and sync with the CLI when disks fill up.

Core Concepts

Terms you will use while raising the import ceiling:

ConceptMeaning
upload_max_filesizeMax size of a single uploaded file in PHP
post_max_sizeMax size of a POST body (must be ≥ upload size)
AI1WM_MAX_FILE_SIZEPlugin constant that can advertise an import cap
php.iniPHP config file; Bitnami often uses /opt/bitnami/php/etc/php.ini
ctlscript.sh restartBitnami helper that restarts Apache/Nginx/PHP services
.wpressAll-in-One WP Migration archive format
Proxy body limitNginx/Apache/ALB limits that can still reject large uploads
Premium extensionVendor add-on that can raise plugin-enforced ceilings

Prerequisites

Have these ready before you edit PHP:

  • A running Bitnami WordPress EC2 instance (see WordPress on AWS) with wp-admin access.
  • FileZilla SFTP or SSH (PuTTY) to edit php.ini and restart services.
  • Enough free disk space for the import archive plus temporary extract room.

Examples

Install the plugin, note the current limit, raise PHP settings on Bitnami, restart, and verify Import.

Example 1 — Install All-in-One WP Migration

Add the ServMask plugin from wp-admin.

  1. Sign in to wp-admin.
  2. Open Plugins → Add New.
  3. Search for All-in-One WP Migration (vendor ServMask).
  4. Choose Install Now, then Activate.

How It Works

  1. Install from wordpress.org keeps updates available in the dashboard.
  2. Activate registers the All-in-One WP Migration admin menu.
  3. Export/Import appear after activation; Import shows the current size ceiling.
  4. Keep WordPress and plugins updated before large migrations when you can.

Example 2 — Note the Current Import Limit

See what the UI advertises before you change PHP.

  1. In wp-admin, open All-in-One WP Migration → Import.
  2. Note the advertised maximum upload size (often around 80 MB on fresh installs).
All-in-One WP Migration Import screen showing upload size limit
WordPress

How It Works

  1. The Import screen reflects PHP and/or plugin caps.
  2. Your archive must be smaller than the effective limit (plus headroom).
  3. After php.ini changes, reload this page to confirm the new value.
  4. Proxy limits can still block large POSTs even when PHP looks fine—see web server body limits.

Example 3 — Optional Plugin Constant Check

Confirm AI1WM_MAX_FILE_SIZE is not stuck low—without relying on the dashboard editor for production fixes.

  1. On current releases the definition may live under the plugin’s constants.php (or equivalent).
  2. Paths change between versions—compare with the vendor documentation before editing anything inside wp-content/plugins/.
  3. Prefer SFTP/SSH for inspection; avoid lasting hacks in plugin PHP that updates will erase.
WordPress plugin file editor context for migration plugin
WordPress
Do not depend on the Plugin File Editor.

It is often disabled for security. Use FileZilla/SSH for php.ini, or ServMask-supported filters and extensions for durable limits.

How It Works

  1. Plugin constants can advertise a cap independent of PHP.
  2. Updates overwrite manual edits under wp-content/plugins/.
  3. Vendor extensions are the supported way to raise software ceilings.
  4. PHP remains required even after a plugin cap is lifted.

Example 4 — Raise Limits in php.ini

Edit Bitnami PHP configuration over SFTP or SSH.

  1. Connect with FileZilla (or SSH) and open Bitnami’s PHP configuration, commonly /opt/bitnami/php/etc/php.ini.
  2. If your stack is not Bitnami, locate php.ini with php --ini or your AMI docs.
  3. Set upload_max_filesize and post_max_size (example: both 300M). Keep post_max_size ≥ upload_max_filesize.
  4. Save and upload the file back to the server.
Path (Bitnami)
/opt/bitnami/php/etc/php.ini
php.ini (example)
upload_max_filesize = 300M
post_max_size = 300M
Locating php.ini for Bitnami PHP on the server
SFTP / FileZilla
php.ini with increased upload_max_filesize and post_max_size
Editor

How It Works

  1. upload_max_filesize caps each uploaded file.
  2. post_max_size caps the whole POST; if it is smaller, uploads fail first.
  3. Bitnami path is common but version-specific—confirm with php --ini if unsure.
  4. Changes do not apply until PHP/web services restart (next example).

Example 5 — Restart Bitnami and Verify

Reload PHP, then confirm Import shows the new ceiling.

  1. Over SSH as a user with sudo, restart Bitnami services:
Terminal (EC2)
sudo /opt/bitnami/ctlscript.sh restart
  1. Reload All-in-One WP Migration → Import.
  2. Confirm the displayed limit reflects your new PHP settings (and any premium extension caps).
Terminal restarting Bitnami stack with ctlscript.sh
Ubuntu
All-in-One WP Migration showing increased maximum upload file size
WordPress

How It Works

  1. ctlscript.sh restart reloads Apache/Nginx and PHP on Bitnami.
  2. Hard-refresh Import so the browser is not caching the old banner.
  3. If the UI is still low, a plugin extension cap or proxy body limit may remain.
  4. Non-Bitnami stacks restart php-fpm or the web server instead—see a php-fpm upload limits guide.

Edge Cases & Pitfalls

Most failures are a smaller post_max_size, a skipped restart, or a plugin software cap.

post

post_max_size left too small

PHP rejects the POST before the file limit matters. Match or exceed upload_max_filesize.

restart

Edited php.ini but did not restart

Running PHP workers keep old values until ctlscript.sh restart (or your stack’s equivalent).

plugin

UI still shows a low free-tier cap

ServMask may enforce a software ceiling. Check extensions and current product limits.

disk

Import fails with disk full

Archives expand during import. Free space on the root volume or move media to S3.

proxy

413 or gateway errors on large uploads

Nginx client_max_body_size or another proxy in front of PHP can still block the request.

editor

Plugin edit wiped after update

Never rely on patched plugin PHP. Keep durable settings in php.ini or vendor-supported hooks.

Key Takeaways

  • Bottleneck layer: PHP, proxy, and plugin—raise the one that is smallest.
  • Bitnami: edit /opt/bitnami/php/etc/php.ini for upload and post sizes.
  • Restart: sudo /opt/bitnami/ctlscript.sh restart after edits.
  • Skip plugin hacks: updates wipe them; use php.ini or vendor extensions.

One line: raise upload_max_filesize and post_max_size, restart Bitnami, then recheck Import.

Frequently Asked Questions

The effective limit is the smallest of PHP upload_max_filesize, post_max_size, web server and proxy body limits, and any cap enforced by the plugin or its extensions. Raise the relevant PHP values and restart PHP for Bitnami stacks after editing php.ini.
Avoid the dashboard file editor for production. It is often disabled for security, edits are easy to get wrong, and plugin updates overwrite manual changes. Prefer SFTP or SSH on the server, or use supported filters and add-ons from the vendor.
A common path on Bitnami stacks is /opt/bitnami/php/etc/php.ini. Paths can differ by image version; verify with Bitnami documentation or php --ini from the server shell if unsure.
PHP rejects oversized POST bodies when post_max_size is too small, even if upload_max_filesize is large. Set post_max_size to at least your largest expected upload (often match both directives for simplicity).
The free tier of the plugin may still advertise a ceiling. ServMask sells extensions that raise or remove that cap while keeping support. Check the current product page for limits that are enforced in software rather than only by PHP.
Locate the active php.ini or drop-in overrides for your AMI (Apache, Nginx, or php-fpm pools). Restart the correct service so changes apply.

Next: S3 from your laptop

Use the AWS CLI to sync large media or exports to and from buckets once PHP limits are sorted.

Download files from S3 →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful