Go Back   HostGator Peer Support Forums > HostGator Announcements > Network Status

Notices

Reply
 
Thread Tools
  #1  
Old 03-22-2008, 06:05 PM
simplems simplems is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 6
Default Upload issues

Hi,

I need to allow my clients the ability to upload files through our website but the connection keeps timing out. I tired it on various computers and connections but still the same problem. HG said the up'ed the quota to 500MB but it is still timing out.

Is there any way to fix this??

I'm currently running on a dedicated server (70.87.43.138)
Reply With Quote
  #2  
Old 03-22-2008, 06:45 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: Upload issues

How are they uploading? A PHP script? FTP?
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #3  
Old 03-22-2008, 10:09 PM
simplems simplems is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 6
Default Re: Upload issues

its a php script
Reply With Quote
  #4  
Old 03-22-2008, 10:11 PM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,059
Default Re: Upload issues

How big is the file?
Reply With Quote
  #5  
Old 03-23-2008, 01:05 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,163
Default Re: Upload issues

Are your php limits-- max_upload, memory_limit, and upload_max_filesize--changed to be high enough to accommodate your file? What about the max_execution_time-- can it cover the amount of time it takes to upload?
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #6  
Old 03-23-2008, 02:02 AM
simplems simplems is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 6
Default Re: Upload issues

PHP limits are set in the code correct? Not Server side?

the file is 100 MB
Reply With Quote
  #7  
Old 03-23-2008, 06:54 AM
warrenasia warrenasia is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 3
Default Re: Upload issues

limits are set on the server side. in the php.ini file.
also check max_input_time besides the limits slapshotw suggested
Reply With Quote
  #8  
Old 03-23-2008, 10:13 AM
Pazeh Pazeh is offline
King Croc
 
Join Date: Jan 2005
Posts: 1,062
Default Re: Upload issues

global php limits (max_execution_time, max_upload, memory_limit, and upload_max_filesize) are set on the server. in a file called php.ini

Don't know about the your dedicated configuration, but on shared you can create php.ini file in public_html folder to custom-modify/set SOME of these settings.
Reply With Quote
  #9  
Old 03-23-2008, 07:49 PM
GatorEricS's Avatar
GatorEricS GatorEricS is offline
HostGator Staff
 
Join Date: Dec 2007
Location: Houston
Posts: 603
Default Re: Upload issues

You can override these functions (on a dedicated server) by creating a custom php.ini file in the directory of the script. It is highly suggested you make a copy of the server's php.ini file ('php -i | grep php.ini' will give you the location of the server's php.ini) and modify from there.
__________________
--
Hostgator.com, LLC
Linux Systems Administrator
Gator, mushroom, snake?
Reply With Quote
  #10  
Old 03-23-2008, 07:51 PM
Serra's Avatar
Serra Serra is offline
Veteran Croc
 
Join Date: Feb 2005
Location: Orange Park, FL
Posts: 5,067
Default Re: Upload issues

Quote:
Originally Posted by GatorEricS View Post
You can override these functions (on a dedicated server) by creating a custom php.ini file in the directory of the script. It is highly suggested you make a copy of the server's php.ini file ('php -i | grep php.ini' will give you the location of the server's php.ini) and modify from there.
While Eric may SAY that, he isn't implying that it is ok to upload 100mb files using PHP. He is just saying it is possible. Like playing in traffic. It's a fun, fast paced game, but sometimes ends in a real mess.
__________________
Six stages of Dedi Ownership

Fashionable broken link
image included
Reply With Quote
  #11  
Old 03-24-2008, 02:25 AM
GatorEricS's Avatar
GatorEricS GatorEricS is offline
HostGator Staff
 
Join Date: Dec 2007
Location: Houston
Posts: 603
Default Re: Upload issues

Good point, Serra...

Uploading huge (100MB+) files via php is possible. However, it will cause the server to lag as memory and processing power is used for the upload. Trying to do too much of this at once may cause the httpd process to stop responding altogether, or to crash. If it's something that is done once in a great while, it shouldn't be a major issue. If it's something that you need to do on a fairly regular basis (or as part of the normal site functioning), you'll need more than just a basic dedicated.
__________________
--
Hostgator.com, LLC
Linux Systems Administrator
Gator, mushroom, snake?
Reply With Quote
  #12  
Old 03-24-2008, 11:53 PM
GatorFord's Avatar
GatorFord GatorFord is offline
HostGator Staff
 
Join Date: Jan 2007
Location: Houston, TX
Posts: 1,143
Default Re: Upload issues

Keep in mind /usr/local/apache/conf/httpd.conf Timeout setting. If you set it to 60 seconds, and it takes longer than 60 seconds to upload 100MB, well. You get the idea.

Also, since the new easyapache 3 these values are stored in /var/cpanel/conf/apache/main (I believe that's right offhand) in a YAML file. So you need to update the Timeouts there. When in doubt, file a support ticket and we can handle this for you.
__________________
Ford M.
Systems Administrator Supervisor

Folding@Home Stats :
Reply With Quote
  #13  
Old 03-25-2008, 06:17 AM
quietFinn's Avatar
quietFinn quietFinn is offline
Emperor Croc
 
Join Date: Feb 2005
Posts: 2,731
Default Re: Upload issues

Quote:
Originally Posted by GatorFord View Post
Also, since the new easyapache 3 these values are stored in /var/cpanel/conf/apache/main (I believe that's right offhand) in a YAML file. So you need to update the Timeouts there. When in doubt, file a support ticket and we can handle this for you.

You can do the change in /usr/local/apache/conf/httpd.conf, and then check your modifications into the configuration system by running:

/usr/local/cpanel/bin/apache_conf_distiller --update
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #14  
Old 03-25-2008, 01:07 PM
simplems simplems is offline
Hatchling Croc
 
Join Date: Mar 2008
Posts: 6
Default Re: Upload issues

Hmm that's interesting. Most of these files should be uploaded once in a blue moon but I see your point.

Okay thanks for getting back to me. I'll give your ideas a shot and see how it goes.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 12:35 AM.

 
Forum SEO by Zoints