Articles in this section

How to upload large files to a website hosted in Plesk

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:

  1. Log in to Plesk.
  2. 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
  3. 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
  4. 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 nginxClientMaxBodySize value to 3500m.
Was this article helpful?

Comments

1 comment
Date Votes
  • tere is also plesk ini for all the domains

    0

Please sign in to leave a comment.