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
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
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.)
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.)
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo
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
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
Code: Select all
Is there not a way to just bypass PHP for the downloads?
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo
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.
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+
Thanks!
Thanks Mike, and also for reporting back!
Happy clients make all the hard work worthwhile
Happy clients make all the hard work worthwhile

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Who is online
Users browsing this forum: No registered users and 101 guests