How to Fix '413 Request Entity Too Large' / Upload Errors — cPanel & Hosting How-Tos cPanel & Hosting How-Tos

How to Fix '413 Request Entity Too Large' / Upload Errors

By Genhost Team 2 min read

A “413 Request Entity Too Large” error — or WordPress saying a file “exceeds the maximum upload size” — means the upload is bigger than your current limits allow. Raising a couple of PHP values fixes it, and you can do it yourself.

Which limits control uploads

Three settings decide the maximum upload:

  • upload_max_filesize — the biggest single file allowed.
  • post_max_size — the biggest total request (should be equal to or larger than upload_max_filesize).
  • memory_limit — enough RAM to process the file.

A 413 also involves the web server’s request limit, but on our LiteSpeed hosting raising the PHP values above is normally all you need.

How to raise the limits in cPanel

Option A — MultiPHP INI Editor (easiest)

  1. In cPanel open MultiPHP INI Editor.
  2. Choose your domain.
  3. Set, for example:
    • upload_max_filesize = 64M
    • post_max_size = 64M
    • memory_limit = 256M
    • max_execution_time = 120 (so big uploads don’t time out)
  4. Save and retry the upload.

See increase PHP limits in cPanel for the full walkthrough, and change your PHP version if you need a different PHP build.

Option B — php.ini / .user.ini

If you prefer a file, add the same lines to a php.ini or .user.ini in your site root. For WordPress you can also raise the memory constant in wp-config.php:

define('WP_MEMORY_LIMIT', '256M');

For very large files, use FTP instead

Browser uploads of huge files (big videos, large backups) often 413 or time out. Upload those over FTP instead, which has no PHP size limit — see create an FTP account and fix FileZilla errors. For database files, use phpMyAdmin import/export.

After changing limits

Clear your cache and retry — see clear your cache. In WordPress, Media → Add New shows the current maximum upload size so you can confirm the new value took effect.

Still blocked?

If the limits look right but the upload still fails, your error logs show which limit was hit, and our support team can confirm the server-side cap. Every Web Hosting, WordPress Hosting and Reseller Hosting plan at Genhost includes the MultiPHP INI Editor and FTP, so you can raise upload limits yourself.

Frequently asked questions

What does '413 Request Entity Too Large' mean?

The file or data you tried to upload is bigger than the server currently allows. Raising the PHP upload_max_filesize and post_max_size limits (and the web server's limit) lets the larger file through.

Why does WordPress say my file 'exceeds the maximum upload size'?

WordPress shows the PHP upload limit set on your account. Increase upload_max_filesize and post_max_size via cPanel's MultiPHP INI Editor or PHP selector, then retry the upload.

What's a sensible upload limit?

64MB or 128MB covers most media and plugin/theme uploads. Very large files (big videos, huge backups) are better uploaded over FTP than through the browser, which can also time out.