Increasing upload_max_filesize / post_max_size from the site settings does not work - 413 Request Entity Too Large #242

Closed
opened 2026-04-05 20:26:12 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @continue47 on 5/15/2024

CloudPanel version(s) affected

2.4.1

Description

Going to a site settings -> PHP settings and increasing upload_max_filesize and post_max_size does not actually allow uploading files over the default 64MB. Attempting such an upload returns nginx 413 Request Entity Too Large.

The file /etc/nginx/nginx.conf also needs to be manually edited from the terminal to change client_max_body_size to the desired size.

How to reproduce

For me, the error occured when trying to upload a 100MB file to a new wordpress site created through cloudpanel. Even though upload_max_filesize, post_max_size and the memory_limit were increased through the cp ui in the site's settings.

Possible Solution

Simplest would be to add a notice message to PHP Settings section of the site settings which tells the user that client_max_body_size needs to be updated manually in /etc/nginx/nginx.conf

Additional Context

No response

*Originally created by @continue47 on 5/15/2024* ### CloudPanel version(s) affected 2.4.1 ### Description Going to a site settings -> PHP settings and increasing upload_max_filesize and post_max_size does not actually allow uploading files over the default 64MB. Attempting such an upload returns nginx 413 Request Entity Too Large. The file `/etc/nginx/nginx.conf` also needs to be manually edited from the terminal to change `client_max_body_size` to the desired size. ### How to reproduce For me, the error occured when trying to upload a 100MB file to a new wordpress site created through cloudpanel. Even though upload_max_filesize, post_max_size and the memory_limit were increased through the cp ui in the site's settings. ### Possible Solution Simplest would be to add a notice message to PHP Settings section of the site settings which tells the user that `client_max_body_size` needs to be updated manually in `/etc/nginx/nginx.conf` ### Additional Context _No response_
Sign in to join this conversation.