Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Upload can't ecxeed more than 200MB :/ using html and have edited php.ini and everything
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Upload can't ecxeed more than 200MB :/ using html and have edited php.ini and everything

Here is something which is more clear + says what i have done till now,

I have xenforo and yetishare. In both, when i try to upload files around 256 mb, the progrss bar starts, goes till 150mb + and then the progess bar again comes back to 0% and start uploading again. It does like 4 times then shows error that the file can't be uploaded.

I can upload a file, 126mb without any problem.

My Php Info : http://dl.godgivens.com/temp.php

I have set them temp directory of php to /tmp and uploaded a .htaccess file there with this settings, [these are the only lines in it]

LimitRequestBody 0
php_value upload_max_filesize 0
php_value post_max_size 4939212390
My file uploader, is index.php, and the .htaccess file also has the above settings as well as the folder which the files are saved also have the above settings.

You could see my php.ini settings, link i gave above.

IN httpd.conf under my httpd folder in /etc i have set timeout to 900.

I couldn't find limit request body anywhere.

In php.conf, i have added this to the last section,


SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 0

and i have added this line to fcgid.conf,

FcgidMaxRequestLen 1073741824
so it looks like,

This is the Apache server configuration file for providing FastCGI support

via mod_fcgid

#

Documentation is available at http://fastcgi.coremail.cn/doc.htm

LoadModule fcgid_module modules/mod_fcgid.so


AddHandler fcgid-script fcg fcgi fpl

FcgidIPCDir /var/run/mod_fcgid/sock
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 45000
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
FcgidMaxRequestLen 1073741824


i have also added edited it, in domain configuration, nginxdomainvirtualhost.php.

Rebooted servers, reloaded httpd, restarted https, reconfigured things, but still it is just as same as before:/

I want to be able to upload 1gb-2gb files in my forum.

I can pay less than 10$ to anyone who could remotely connect and try to help me

here is the example of it uploading, Please see the link below to see it uploading. http://gyazo.com/c40cb03c503f172a3bc737d688f7cb00.gif

this is the one i followed : http://stackoverflow.com/questions/1...apache-and-php

Edit--- please guys, i am just 14, if you could help me, i will pay you by paypal. My skype : kks21199

Comments

  • Why not just upload via FTP and link to it in your forum?

  • Uploading 1-2GB files via PHP is a really terrible idea.

  • ironhideironhide Member
    edited December 2013

    nunim said: Uploading 1-2GB files via PHP is a really terrible idea.

    why is that?

    said: I want to be able to upload 1gb-2gb files in my forum.

    increase the maximum execution time in php.ini from 120 to like 600 (or 6000 depending on your bandwidth from where you're uploading). you can use set_time_limit(0); at the beginning of your php script.

    don't forget to restart apache after any change in php.ini

  • Are you using cloudflare?

  • I guess the server has at least 2GB RAM allocated in php.ini for the script? It might even need more since it is working with the file.

  • ironhide said: why is that?

    Imagine 100x simultaneous 2GB file uploads, or you're on a slow connection and you get to 1.90GB and the browser crashes.

  • ironhideironhide Member
    edited December 2013

    nunim said: Imagine 100x simultaneous 2GB file uploads, or you're on a slow connection and you get to 1.90GB and the browser crashes.

    Premature optimization is the root of all evil, a great man named "Knuth" said it :)

    Don't presume when it comes about optimizing something. Let it happen first and then mitigate it.

  • @wych said:
    Why not just upload via FTP and link to it in your forum?

    I want my users to upload.> @nunim said:

    Uploading 1-2GB files via PHP is a really terrible idea.

    i know it. But i still need it.

    i need to upload less than 1GB, i will try to manage the specs

  • I'm pretty sure you can't set upload_max_filesize to 0. It needs to be an actual number.

  • @tortau said:
    I'm pretty sure you can't set upload_max_filesize to 0. It needs to be an actual number.

    but even then i am able to upload 128mb files, not 200+

  • @tortau said:
    I'm pretty sure you can't set upload_max_filesize to 0. It needs to be an actual number.

    Set it at 2G
    browsers dont support uploading filesizes over 2-4GB on the HTTP protocol.

  • KKS21199 said: but even then i am able to upload 128mb files, not 200+

    can you increase the maximum_execution_time and recheck?

  • @KKS21199 said:

    How much RAM does the server have and how much do you have allocated?

  • @ironhide said:
    Don't presume when it comes about optimizing something. Let it happen first and then mitigate it.

    I wasn't even mentioning the fact that I could just upload garbage data in an attempt to fill your disk space, wouldn't take very long with 2GB files and a VPS. I see very little, non-warez, potential in allowing such large file uploads on a forum.

    I really hope he's not using mod_fcgid, unless they've changed upload buffering.

    Thanked by 1ironhide
  • Why are we all still helping him upload warez? This isn't hackforums.

    Thanked by 2ironhide Mark_R
  • MrObvious said: Why are we all still helping him upload warez? This isn't hackforums.

    Sorry, didn't notice that it was all about uploading warez! :(

  • GodGivens is a non-profit organisation started by some students to give computer softwares and things for free. Unlike like most of the sites who cheat on people by making survey download links, We shared everything we could for free.

    Thanked by 1KKS21199
  • KKS21199KKS21199 Member
    edited December 2013

    @MrObvious said:

    GodGivens is a non-profit organisation started by some students to give computer softwares and things for free. Unlike like most of the sites who cheat on people by making survey download links, We shared everything we could for free.

    not only warez -.- everythin in development. The most we could do.
    don't be such a ..... this is a general question..don't say u have never downloaded a illegal file. It could be anything [movies, warez, hacks, jailbreaks]

  • My ram is 1Gb and plesk has used less than 500mb. I first wanna be able to upload200+mb files and i will upgrade the ram on the go :P

  • anyone please help me :/

  • ---problem solved---found a way in another good forum :P

  • maybe you could share it so anyone other having the same problem could learn from it.

    Just saying.

  • @mahjong said:
    maybe you could share it so anyone other having the same problem could learn from it.

    Just saying.

    will post it soon.

Sign In or Register to comment.