4 replies [Last post]
eraccusa's picture
Offline
Joined: 08/30/2010
Juice: 39
Was this information Helpful?

We have a web shop running Drupal 6.22 with ubercart-6.x-2.4 installed. I am attempting to serve some file downloads to one customer. There are several small files under 200k in size that download fine. But when he tries to get the file he purchased, a zipped 571.92 MB (599,705,500 Bytes) file, our shared host returns this error:

----------------------------------

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

----------------------------------

I have opened a ticket with our shared hosting provider, but decided I should ask here too. I am wondering if this could be fixed with some changes to our PHP5 settings? Please assist if you can. Thanks.

Gene

zeezhao's picture
Offline
Joined: 04/23/2008
Juice: 969
Re: D6 / U6 - Large File Download Gets Internal Server Error

You will probably need to amend memory-related variables in your php.ini and restart server e.g. memory_limit

and also maybe:
max_execution_time
post_max_size
upload_max_filesize

eraccusa's picture
Offline
Joined: 08/30/2010
Juice: 39
Re: Re: D6 / U6 - Large File Download Gets Internal Server Error

Oh ho! Thanks for the reply. I should have thought of "memory_limit" myself. I will change the settings on those variables and see what happens. I will report back with success or failure.

eraccusa's picture
Offline
Joined: 08/30/2010
Juice: 39
Re: D6 / U6 - Large File Download Gets Internal Server Error

No joy.

I did change the memory_limit, post_max_size, and upload_max_filesize to 750MB each. The execution time is already 300 seconds and is not a problem as far as I can tell, since the Internal Server Error occurs within a few seconds of clicking the large file to download. It never gets close to 5 minutes.

However, as this is a shared hosting provider I cannot restart the server myself. My guess is when I apply the PHP5 changes from their custom management console the instance of my virtual host is restarted, but I do not know that. I will ask them about that and see what they say.

eraccusa's picture
Offline
Joined: 08/30/2010
Juice: 39
Re: D6 / U6 - Large File Download Gets Internal Server Error

Okay, here is the response from technical support at our shared web host:

Quote:

The changes made to php.ini file will reflects immediately. The Internal server is due to size of the file. You can download or upload a maximum of 10 Mb file. If you wish to upload or download large files, please use FTP.

Here is my response to that:

Quote:

This limitation presents us yet another problem with your service. We are selling a license and an ISO file for a closed, proprietary operating system that needs to be controlled through the shopping interface per our agreement with the distributor. It needs to work as shown when you access the account I set up for your tests.

Otherwise we would have to set up a unique FTP account for EACH customer and copy the large ISO file to EACH directory for EACH customer. The ISO file would need to remain available for EACH customer in perpetuity. As I understand it, we will eventually hit some private, unpublished limit with our "unlimited" file storage at your site under this scenario. Plus, we do not have "unlimited" FTP accounts as far as I know.

So, how do we get this to work with Ubercart downloads and use FTP instead? Is there a module for that? Smiling Thanks.

Gene