kb: how-to
Plesk for Linux
Applicable to:
- Plesk for Linux
Question
Which web-server settings should be adjusted to upload large files?
Answer
For example, to upload 3GB files to a website, adjust the following settings:
- Log in to Plesk.
-
Go to Domains > example.com > Dashboard tab > PHP and configure the following options:
Note: "3500M" is an example. Instead of "3500M" you can use gigabytes, for example "4G".
-
file_uploads= on -
upload_max_filesize= 3500M -
post_max_size= 3500M -
memory_limit= 3500M
-
-
Go to Domains > example.com > Hosting & DNS > Apache & nginx Settings and add the following line to the 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), then additionally apply the steps under "For case PHP is served by nginx" from this KB article to increase the
nginxClientMaxBodySizevalue to 3500m.
Comments
tere is also plesk ini for all the domains
Please sign in to leave a comment.