Apache2 upload timeout

5,062

To upload files using php you have to consider these settings in your php.ini file :

As a sample, my production server for file upload is setup like this :

upload_max_filesize = 2000M
post_max_size = 2000M
max_input_time = 60
memory_limit = 3092M
Share:
5,062
aa007
Author by

aa007

Updated on September 18, 2022

Comments

  • aa007
    aa007 almost 2 years

    Whenever an upload takes longer than 22 seconds, then the upload ends up with connection was reset error. On the server side, the connection is in FIN_WAIT2 state. The problem is, that apache2 Timeout is 300 seconds, max_input_time is 60 seconds.

    I have no idea what else can be causing this.

    • krisFR
      krisFR over 10 years
      Are you using a php file to upload files ?
    • aa007
      aa007 over 10 years
      Yes .. I tried several scripts .. and even php file manager (phpfm.sourceforge.net) failed.
  • aa007
    aa007 over 10 years
    All of that is OK - when I change to https then everything is working correctly. So I guess it's a problem on my ISP's side, I hope they will be able to fix it.