IIS 8.5 php Version 7.3.11 64 UPLOAD BIGGER THAN 2GB?

203 Views Asked by At

I'm trying to upload a file of 4 GB or more file (sum 5GB) files - 500 Internal server error!!! Any idea?

<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxAllowedContentLength="4294967295" />
    </requestFiltering>
  </security>
</system.webServer>

system.web > HttpRuntime > maxRequestLength 5079040 (KB)

PHP I'VE TRIED:

post_max_size = 0 upload_max_filesize = 0

post_max_size = 5G upload_max_filesize = 4G

post_max_size = 5120M upload_max_filesize = 4096M

It works untill 2GB All the other: 500 - internal error.

nothing in logs

1

There are 1 best solutions below

1
On

iis has its own limit to upload the file which is 2 GB.

But you can try the below workaround to upload the larger file with iis site:

  1. Set ini_set('max_execution_time', 300); //300 seconds = 5 minutes in php.ini file

  2. Set iis application pool idle time out to 0

enter image description here

  1. Increase iis site connection time-out value:

enter image description here