Newer specifications call this status 413 Content Too Large, but most servers still show the old name. It fires when the request body goes over the allowed size, typically when uploading an image, video, plugin or theme, or importing a database. The key point is that there isn’t just one limit: the request passes through several layers, and each has its own.
What causes a 413 error
- Low PHP limits:
upload_max_filesizeandpost_max_sizeare smaller than the file. - The web server limit: the web server caps request body size, and that’s set server-wide.
- The firewall: ModSecurity rules have a request body limit and can answer 413 when it’s exceeded.
- Cloudflare or another proxy in front of the site, with a limit that depends on its plan.
- Application limits such as an upload plugin’s settings or phpMyAdmin’s import size.
Note: if the file only exceeds the PHP limit, you may not see a 413 at all but a WordPress message like “The uploaded file exceeds the upload_max_filesize directive”. See WordPress upload_max_filesize error.
Fixing it step by step
1. Find the layer that refused it
Look at the error page: does it carry Cloudflare branding, or is it the server’s plain page? Then open cPanel and check Metrics → Errors to see whether the log mentions ModSecurity or another limit.
2. Raise the PHP limits
In cPanel open Software → Select PHP Version, go to the Options tab and adjust:
upload_max_filesize: larger than the biggest file you need to upload.post_max_size: equal to it or larger.memory_limit: enough to process the file once it’s uploaded.
If your account uses MultiPHP INI Editor, change the same values there. You can also set them in your .htaccess file (example values only):
php_value upload_max_filesize 128M
php_value post_max_size 128M
3. Upload large files another way
- Upload over FTP or with cPanel’s File Manager straight to the right folder.
- In WordPress, put the plugin or theme into
wp-content/pluginsorwp-content/themes, then activate it from the dashboard. - For large databases, split the dump or import it with the
mysqlcommand over SSH. See phpMyAdmin import file too large.
4. If the site is behind Cloudflare
If the file is above your plan’s limit, upload it over FTP, or use a subdomain set to DNS only (grey cloud) just for uploads. See using Cloudflare with your hosting.
5. If it still fails
If you raised the PHP limits and Cloudflare isn’t involved, the limit is probably in the web server or ModSecurity. Those are server-level settings, so contact support with the file name, its size and the time you tried.
Prevention
- Compress images and video before uploading, and use light formats like WebP.
- Use upload plugins that split large files into chunks.
- Host large videos on a video platform and embed them instead of uploading.
On ArabyHost
You change PHP limits yourself in Select PHP Version in cPanel, which opens with one click from the Araby Panel, on PHP 8.1-8.3. LiteSpeed is the web server and reads .htaccess like Apache. If a ModSecurity or Imunify360 rule is what refused the upload, support can review it. The Araby AI assistant can read your error log and tell you which layer rejected the file.
FAQ
What's the difference between upload_max_filesize and post_max_size?
upload_max_filesize caps a single file; post_max_size caps the whole request, including every file and form field. Set post_max_size equal to or larger than upload_max_filesize.
I raised the PHP limits and still get 413. Why?
The limit may be in another layer: the web server, the ModSecurity firewall, or Cloudflare if your site goes through it. The error page itself usually tells you which layer answered.
Does Cloudflare limit upload size?
Yes. Each Cloudflare plan has a request size limit, 100 MB on the free plan according to its public docs. For bigger files, use FTP or a subdomain that bypasses the Cloudflare proxy.