how upload big multimedia file?

Author Message

Andre Felipe Machado

Saturday 11 July 2009 8:31:09 am

Hello,
I am trying to upload a big 128 MB multimedia video file to an ezpublish site running on fcgid.
Already modified php.ini to accept much more than this file size upload.
But after some time uploading (using the multimedia form), the connection is broken.
Please, what am I missing?
Regards.
Andre Felipe Machado

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

kracker (the)

Saturday 11 July 2009 8:45:41 am

Hello,

It sounds like you want to optimize your web server and php configurations together to avoid this error.

Which version of apache are you running?

This sounds strikingly similar to an apache 1.3 (large file upload) configuration issue I've learned to avoid over the years. set LimitRequestBody to an int (file size in bytes) value larger than your largest file.

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

I found I often needed this apache settings change along with the php settings changes to enable large file uploads with apache 1.3

Cheers,
//kracker

<b>References</b>
<i>
LimitRequestBody
http://stackoverflow.com/questions/757111/large-file-upload-errors-with-php
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Q_23213263.html
</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Steven E. Bailey

Saturday 11 July 2009 9:55:53 am

Depending how this is uploaded you'll probably also have to increase the post_max_size to larger than the file you want to upload and of course increase the max_input_time and also max_execution_time beyond the time it takes to upload the file.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Andre Felipe Machado

Sunday 12 July 2009 3:45:51 pm

Hello,
Thanks for your valuable hints that pointed to the solution.
The site is running Apache 2.2.x , with php on fcgid.
The LimitRequestBody is still relevant at this version
http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody
And even after trying the php.ini and apache2 configs explained at
http://www.radinks.com/upload/config.php
the problem persisted.
There is a trick at fcgid configuration, with the proper php.ini and other apache settings too.
http://httpd.apache.org/docs/2.2/mod/core.html#maxkeepaliverequests
http://httpd.apache.org/docs/2.2/mod/core.html#timeout
Tried setting fcgid
ProcessLifeTime 1600
BusyTimeout 1600
to solve the problem for this file size upload at my bandwidth.
Also, the hosting provider machine limits for ram and swap must be respected.
The file is uploaded to memory by apache.
But I am afraid this unusual values settings could open a stability problem for the server under load.
Observing the failure with top, I saw that when ram "almost" depleted (30 MB left), the upload crashed. Disabling some service to free ram changed the duration. So, I guess it is not a time limit anymore, but something related to hosting limit memory. I did not set RLimitMem so it should follow system limit. .
Any suggestions?
Regards.
Andre Felipe

---
A Debian user never dies. Issues a last command:
shutdown -h now

http://www.techforce.com.br

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.