mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Increasing upload_max_filesize / post_max_size from the site settings does not work - 413 Request Entity Too Large #242
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.confalso needs to be manually edited from the terminal to changeclient_max_body_sizeto 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_sizeneeds to be updated manually in/etc/nginx/nginx.confAdditional Context
No response