- Plesk for Linux
Which web-server settings should be adjusted to be able to upload large files?
For example, to upload 3GB files to a website, adjust the following settings:
Go to Domains > example.com > PHP Settings and configure the following options:
Note: "3500M" is just an example. Instead of "3500M" you can use gigabytes, for example "4G".
Then go to Domains > example.com > Hosting & DNS > Apache & nginx Settings and add the following line to Additional directives for HTTP and Additional directives for HTTPS fields:
CONFIG_TEXT: LimitRequestBody 3670016000
where 3670016000 (bytes) = 3500MB
If the website for which you would like to upload 3GB files is served by nginx instead of Apache (check it at Domains > example.com > PHP Settings), then additionally apply the steps under "For case PHP is served by nginx" from this KB article to increase the
nginxClientMaxBodySizevalue to 3500m.
Please sign in to leave a comment.