In nas DNS - 320 installed lighttpd and php , threw the veno file manager 1.6.8 script. The problem with downloading large files. In the file php.ini entered the following settings

 max_execution_time = 180 max_input_time = 180 memory_limit = 1280M upload_max_filesize = 10000M post_max_size = 5000M 

When downloading a maximum allows you to download 2 GB. I tested the script on the openserver localhost, it loads there without any problems.

With a drop in the php.ini file

 upload_max_filesize = 100M post_max_size = 100M 

The server limits the download (I load 1.5 GB, and load 940 MB).

I tried to set maximum values ​​in the file - it did not help, I don’t know where to dig.

  • one
    increase the memory_limit and time limits. - Naumov
  • one
    sense to register upload_max more than post_max ? If the volume of the downloaded file is greater than you can fill, then you will not get anything at all. Check the settings of the file manager itself, because it can change them through ini_set . make sure that max_execution_time 180 seconds enough to load 2 gigabytes. And the fact that on the hard disk in the section where the temporary file is filled up is enough space. - teran
  • That you have corrected the settings of php itself, but what about the settings of the web server itself? For example, I’ve got nginx + httpd - I’ll need to set limits in nginx as well, otherwise it won’t get backend. - AK
  • server.max-request-size of the request (header + body). Default: 2097152 (2GB) can the lighttpd web server itself limit downloads and files larger than 2097152 cannot be downloaded? - Roman Yushko

0