Home > Apache Development > Time out on 1 MB upload

Time out on 1 MB upload



I'm having problem on new VPS with uploading files from script.

Both Perl and PHP scripts gets interrupted after about 30 seconds with browser message "The connection to the server was reset while the page was loading."



Timeout is 300 seconds in apache2.conf



Where/how could I set longer execution time limit?

    
Guest


Are you hosting this on your own server or on a public server?

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by Nilpo
Are you hosting this on your own server or on a public server?


It is a public server and I have root access, OS: Debian Linux...

Was this answer helpful ? Yes No   
Guest


You can set the Timeout in http.conf

Code:


Timeout 300






You should also check your max file upload size. It may be reaching a size limit and not a timeout.



Be aware that these settings can be set in http.conf, php.conf, and php.ini and that they will override one another if they conflict. They should be set in one place or the other.

Was this answer helpful ? Yes No   
Guest


Thnx, I have already checked that files.

httpd.conf is empty, comments only and it is included in apache2.conf which already has Timeout 300.



I have fixed problem for PHP in php.ini



But figured out that in Perl only .jpg files have a problem, upload works for other large files.

There was "Corrupt JPEG data: 7 extraneous bytes before marker 0xd9" in apache error log.



I have recently installed .jpg libraries recommended by Image Magick: jpegsrc.v6b - that's new problem now.





For future references, some Apache installation have LimitRequestBody set to 500 kb

Raising it in httpd.conf or .htaccess helps.

http://httpd.apache.org/docs/1.3/mod/core.html#limitrequestbody



But in my case just made loading of .jpg file much longer and then error in Apache log was "Corrupt JPEG data: 93 extraneous bytes before marker 0xd9"



Where to start, how to uninstall and install some other libary, or what to do?

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2010 by Infoqu. All rights reserved