Page 1 of 1

http timeout

Posted: Tue Jun 29, 2010 10:34 am
by Steji
I'm having trouble uploading larger files to my server via POST. 15mb is the current maximum but I'm trying to push it as far as I can, maybe to about 50mb+, the file in question is 20mb but I'm getting a HTTP error on completion and I'm not sure where the error message is being generated either.

In my php.ini file I have set:

MAX_POST_SIZE to 120mb for testing purposes -> The file is much smaller
MAX_INPUT_TIME to 1200 seconds -> The transfer takes less time than this
MAX_EXECUTION_TIME to 900 seconds
UPLOAD_MAX_FILESIZE to 80mb

I've heard that http timeouts occur on default after roughly 5 minutes usually? I have no idea how to change that value! Any ideas, suggestions would be most appreciated.

Re: http timeout

Posted: Wed Jun 30, 2010 6:52 am
by Steji
I discovered that the error is just the generic http error 500. I'm running windows server 2008, IIS 7 which I've never used. Does anyone know where I can locate the similar settings I might need to alter to make sure that it is in sync with the php.ini settings? Google has not helped me yet...

Re: http timeout

Posted: Wed Jun 30, 2010 7:49 am
by Jade
There's a setting on IIS for friendly HTTP errors. You need to turn that off and then as long as you have errors turned on in your php.ini file you should see an actual error message and no more of those stupid 500 errors.

Re: http timeout

Posted: Wed Jun 30, 2010 7:54 am
by Steji
I see, thankyou for your reply! I'm trying to look for web.conf in the root folder of my web application but it isn't there. When using PHP on IIS does it even generate one or is it simply for ASP use? (I know nothing of IIS or ASP!)

Re: http timeout

Posted: Wed Jun 30, 2010 8:33 am
by Jade
Actually I don't know the answer to that one, I've only ever used IIS for ASP. You may be able to find more information about that here: http://php.iis.net/