How to Fix “413 Request Entity Too Large” Error in CWP File Manager

0 1 day ago

If you’re trying to upload a file through the CWP File Manager and see the dreaded:

413 Request Entity Too Large

You’re not alone. This error simply means the file you’re uploading exceeds the default upload size limit set in CWP’s internal web server (called cwpsrv).

The good news? It’s an easy fix — here’s how to increase the upload limit in just a few steps.


🛠️ What Causes the 413 Error?

This happens when:

  • You’re uploading a file larger than the allowed request size
  • The internal Nginx-based CWP web server (cwpsrv) blocks the request

This typically affects uploads made via:

  • CWP’s File Manager
  • phpMyAdmin
  • Roundcube

✅ How to Fix the Issue

🔹 Step 1: Edit the cwpsrv Configuration

Run this command:

nano /usr/local/cwpsrv/conf/cwpsrv.conf

Look for the server block (or near the top), and add or modify this line:

client_max_body_size 512M;

💡 You can set this to 1G or more depending on your needs.


🔹 Step 2: Save and Restart cwpsrv

After saving the file:

sh /scripts/restart_cwpsrv

✅ Your new upload limit is now active.


🔹 Step 3: (Optional) Increase PHP Upload Limits

If you’re uploading via PHP scripts (like WordPress, phpMyAdmin, etc.), also edit the PHP config:

nano /usr/local/cwp/php71/php.ini

Update these values:

upload_max_filesize = 512M
post_max_size = 512M

Then restart PHP:

systemctl restart cwp-phpfpm

🧪 Test the Fix

Try uploading the file again via File Manager. It should now work unless the file exceeds the new size you set.


💡 Pro Tip: Use the Right Hosting for Performance

If you’re constantly working with large files or software like WordPress, consider upgrading to a more powerful VPS or dedicated server.

👉 Check out Servers9 high-performance VPS and dedicated servers — optimized for CWP and full-stack workloads.


💬 Still Need Help?

If the error persists or you’d rather not mess with config files, don’t worry.

📨 Reach out to Servers9 Support — their experts can quickly resolve it for you.