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
Author by
aa007
Updated on September 18, 2022Comments
-
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 inFIN_WAIT2
state. The problem is, that apache2Timeout
is 300 seconds,max_input_time
is 60 seconds.I have no idea what else can be causing this.
-
krisFR over 10 yearsAre you using a php file to upload files ?
-
aa007 over 10 yearsYes .. I tried several scripts .. and even php file manager (phpfm.sourceforge.net) failed.
-
-
aa007 over 10 yearsAll 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.