Site wont upload files over 80mb and i have 8tb it's hangs

All support enquiries for DFH go in here...

Site wont upload files over 80mb and i have 8tb it's hangs

Postby sunshadersg » Wed Jan 25, 2012 5:10 am

when you try to upload some big it hans at like 92% my site is uploadlarge.com plz help
sunshadersg
Premium
 
Posts: 20
Joined: Mon Jan 23, 2012 9:51 pm

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby g_pwn » Thu Feb 02, 2012 7:12 am

check your php settings.... for example, im running ubuntu server with webmin and apache server etc, and i wasnt able to upload large files...so i looked through the forums and i saw a post by an admin saying it was the php config so i looked through it and sure enough the MAX upload was set to 8mb.... so i changed the max upload to what i had in the hosting script and i was good togo
g_pwn
Standard Member
 
Posts: 7
Joined: Sun Jan 29, 2012 11:52 pm

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby sigma » Mon Feb 06, 2012 8:28 am

Hmm... I have the same problem. I have successfully upload files <8Mb and can't upload it when size little bit more 8Mb. I just check my php settings (run phpinfo from "check" page of DFH):
upload_max_filesize 4000M
file_uploads On
max_file_uploads 20

So, it should be allowed to upload file up to 4GB, but in fact I have a limit of 8Mb. What settings should be changed?
sigma
Standard Member
 
Posts: 5
Joined: Sat Feb 04, 2012 10:02 am

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby SamEA » Mon Feb 06, 2012 2:49 pm

How about post_max_size? Try to set [post_max_size]'s value to the same value as the upload_max_filesize attribute.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby sigma » Mon Feb 06, 2012 9:34 pm

I have added lines in .htaccess

php_value post_max_size 6000M
php_value upload_max_filesize 6000M

Unfortunately, I should set it to 6000M instead of 8000M because when I set it to 7000M (and greater), I can't login to the DFH. (I can't understand why...)
sigma
Standard Member
 
Posts: 5
Joined: Sat Feb 04, 2012 10:02 am

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby Tyler.S » Tue Feb 07, 2012 2:30 am

You should check your server's php configuration by creating a phpinfo page and look for the following settings:

upload_max_filesize
max_input_time
memory_limit
max_execution_time
post_max_size

You can create a phpinfo page by creating a .php file (name it whatever you like) and insert the following code into the file:
Code: Select all
<?php

phpinfo();

?>


Save the file and upload it to your server. Once uploaded browse to it: http://www.example.com/phpinfo.php

Once there you can use the Search function of most browsers (i.e Ctrl+F), and search for the above settings. Please reply with the settings.

upload_max_filesize and post_max_size:
Files are usually POSTed to the webserver in a format known as 'multipart/form-data'. The post_max_size sets the upper limit on the amount of data that a script can accept in this manner. Ideally this value should be larger than the value that you set for upload_max_filesize.

It's important to realize that upload_max_filesize is the sum of the sizes of all the files that you are uploading. post_max_size is the upload_max_filesize plus the sum of the lengths of all the other fields in the form plus any mime headers that the encoder might include. Since these fields are typically small you can often approximate the upload max size to the post max size.


memory_limit:
When the PHP engine is handling an incoming POST it needs to keep some of the incoming data in memory. This directive has any effect only if you have used the --enable-memory-limit option at configuration time. Setting too high a value can be very dangerous because if several uploads are being handled concurrently all available memory will be used up and other unrelated scripts that consume a lot of memory might effect the whole server as well.


max_execution_time and max_input_time:
These settings define the maximum life time of the script and the time that the script should spend in accepting input. If several mega bytes of data are being transfered max_input_time should be reasonably high. You can override the setting in the ini file for max_input_time by calling the set_time_limit() function in your scripts.
Tyler.S
Premium
 
Posts: 10
Joined: Mon Feb 06, 2012 7:42 am
Location: Ontario, Canada

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby SamEA » Tue Feb 07, 2012 6:42 am

Thank you Tyler. Very useful for our community members and saved me a lot of time :).
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby Tyler.S » Tue Feb 07, 2012 6:45 am

Not a problem Sam...Happy to help. As a hosting administrator, do NOT recommend configuring your php settings to such a large size, but I will help those do it if they request it. I just hope that those that do, are aware of the risks involved.
Tyler.S
Premium
 
Posts: 10
Joined: Mon Feb 06, 2012 7:42 am
Location: Ontario, Canada

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby sigma » Tue Feb 07, 2012 8:13 am

Thank you. I have checked these values:
upload_max_filesize 6000M
max_input_time 60
memory_limit 128M
max_execution_time 30
post_max_size 6000M

When I tried to increase post_max_size to 8000M I have a problem with login to DFH (both admin and user login). I have got a login page, enter login/password, click "Login" but nothing to happens. I have checked error.log (there is no any records about errors) and access log (there are satandards records about access to admin.php?act=login ). I have found thath this "magic" limit is between 6000M and 7000M.
sigma
Standard Member
 
Posts: 5
Joined: Sat Feb 04, 2012 10:02 am

Re: Site wont upload files over 80mb and i have 8tb it's han

Postby Tyler.S » Tue Feb 07, 2012 8:49 am

Two questions, to try and get a better picture about your issue.

1. Are you experiencing the login errors while (either yourself, or anyone else) is uploading such large files, or all the time?
The reason I ask is because, if you or anyone else is uploading such a large file at the same time you could be running into the hang problem because your DFH installation is maxing out the execution and/or input_time limits.

2. Are you on a Shared or Dedicated hosting environment? And if you are running a dedicated machine, can you please provide me with the amount of "Available Memory (RAM)"? The reason I would like this number is to determine if your machine would even be able to handle a single upload of that size (most cannot without 8GB+ RAM). The reason for this (as explained above), is that PHP will dump some of the uploading file(s) into the (RAM) while trying to process everything, and if your server does not have enough available (RAM), you can end up not only hanging up your DFH, but the entire server and causing it to crash.

Also, if you are on a shared account, you won't be able to increase the values enough to get done what you are tryingt o do as there are many safe guards in place to stop (rouge) php scripts from using up all of the server's resources and causing it to crash. You can look at rapidshare for example. You can have unlimited space with them, but you cannot upload a 6GB file at one time. It has to be broken down.
Tyler.S
Premium
 
Posts: 10
Joined: Mon Feb 06, 2012 7:42 am
Location: Ontario, Canada

Next

Return to Daddy's File Host v1.X

Who is online

Users browsing this forum: No registered users and 14 guests

cron