Post by mjutras » Tue Jan 17, 2017 12:46 am

I have OC 1.5.6 setup on IIS with PHP 5.5.14
I have been pulling my hair out for weeks trying to resolve my issue.
I have large files (1GB) as product downloads and the problem is not the file size but the time it takes to download. I've increased the virtual server RAM and CPU, I've played with the FastCGI settings and the PHP RunTime limits.
Maximum POST size = 3500M
Upload Maximum file size = 3000M
Max execution time = 2820
Max inpput time = 7200
Memory limit = 3500M

When I started, the maximum download time was at around 7 minutes, playing with the above numbers I have now reached a limit of 20 minutes but I need at least 45 minutes.

Another issue I am having is when a download starts, the user is stuck on the download page and cannot browse the website until the download is done.

When I create a simple HTML link I have no problems with time nor getting stuck on one page so I would like to apply a simple link to the download icon and bypass PHP. I have no need to control how many downloads a user can request.

Any help would be appreciated.

Mike

New member

Posts

Joined
Sun Jan 13, 2013 12:28 am

Post by rjcalifornia » Tue Jan 17, 2017 8:50 am

For the limits issue modify the FastCGI configuration for per-site configuration to include more processes and server more sites:

https://www.iis.net/learn/application-f ... -and-above

You could also try the IIS-X-Sendfile for Windows server:

https://github.com/stakach/IIS-X-Sendfile-plugin

(Utilizing mod_xsendfile in your download script will initiate the
download via HTTP, then close the php script so memory isn't run up. It
also allows masking of the file location.)

Image
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by mjutras » Tue Jan 17, 2017 10:59 am

Thanks for the quick reply RJ

If I modify the FastCGI configuration for per-site I am afraid I will still have the issue of being stuck on that page until the download has completed am I correct?

I've tried the IIS-X-Sendfile but that is not working out too well and this is possibly a lack of my understanding and I guess this becomes an IIS issue.

Is there not a way to just bypass PHP for the downloads?

Mike

New member

Posts

Joined
Sun Jan 13, 2013 12:28 am

Post by rjcalifornia » Tue Jan 17, 2017 11:40 am

Code: Select all

Is there not a way to just bypass PHP for the downloads?
Not that I am aware of

Image
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by artcore » Tue Jan 17, 2017 7:11 pm

Hi,
I have an extension that deals with this among other features.
https://www.opencart.com/index.php?rout ... er=artcore
Demo for OC15x: http://demo.ilithemes.com/oc1564/index. ... duct_id=50

Use free-checkout and the downloads are available in your account/downloads.
The file with 'undetermined filesize' is 800MB and served from a cloud service. It streams the file so no size known! Others are from Amazon AWS and dropbox which have the sizes calculated nicely.
Let me know if you have any questions.

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by mjutras » Wed Jan 18, 2017 12:57 pm

Artcore,

I bought your extension and it works right out of the box.
You rock...!

Thanks.

Mike

New member

Posts

Joined
Sun Jan 13, 2013 12:28 am

Post by artcore » Wed Jan 18, 2017 3:45 pm

Thanks Mike, and also for reporting back!
Happy clients make all the hard work worthwhile ;D

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands
Who is online

Users browsing this forum: No registered users and 101 guests