Jump to content

Fast_CGI Upload Size Limit


nexus76

Recommended Posts

Hi,

 

I wanted to realize an upload form for a max. file size of 5GB. Don't ask me why, but my friend needs that.

Now I set up a webserver with ISPConfig and this interface provides a lot of features including openbasedir.

Uploading files up to 80MB is no problem but choosing bigger files causes the following errors:

 

[Mon Sep 12 23:39:03 2011] [warn] [client XX.XX.XXX.XXX] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 97477678 bytes) in Unknown on line 0, referer: hxxp://www.mydomain.com/kontakt-upload.html

[Mon Sep 12 23:39:03 2011] [error] [client XX.XX.XXX.XXX] Premature end of script headers: file-uploader.php, referer: hxxp://www.mydomain.com/kontakt-upload.html

[Mon Sep 12 23:39:03 2011] [warn] [client XX.XX.XXX.XXX] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: hxxp://www.mydomain.com/kontakt-upload.html

[Mon Sep 12 23:39:03 2011] [error] [client XX.XX.XXX.XXX] Premature end of script headers: index.php, referer: hxxp://www.mydomain.com/kontakt-upload.html

 

As I see the upload get's buffered in the PHP Memory area instead directly to the harddrive.

How could I fix that?

Link to comment
https://forums.phpfreaks.com/topic/247007-fast_cgi-upload-size-limit/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.