http timeout

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Steji
Forum Newbie
Posts: 19
Joined: Fri Jun 18, 2010 6:06 am

http timeout

Post 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.
Steji
Forum Newbie
Posts: 19
Joined: Fri Jun 18, 2010 6:06 am

Re: http timeout

Post 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...
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: http timeout

Post 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.
Steji
Forum Newbie
Posts: 19
Joined: Fri Jun 18, 2010 6:06 am

Re: http timeout

Post 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!)
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: http timeout

Post 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/
Post Reply