Downloading 30mb file kills Concrete5
PermalinkSo for several minutes the site is completely useless and frozen until the file has finished downloading. You can't go to any other page - it looks like the server is not responding.
After the download is finished, the site regains consciousness and runs fine.
We can't go live with our site like this. We can't have the site die every time someone downloads files.
I have tested this with two separate hosting companies, one running Concrete 5.4.2 and the other running 5.4.1.1.
Need to get this resolved URGENTLY - anyone know how to fix this?

What version are you running? What's your site and file? I'd like to test it out.
make sure your server has enough resources to send the download, I bet that is the issue,
max_execution_time = 30
max_input_time = 60
memory_limit = 32M
These are the only values I can see via cPanel. Are these sufficient? Any other settings I should check?
So it definitely is a c5 issue.
Unfortunately there's no easy way to specify the full path to the file in c5 and we have to use the c5 file manager to specify the file dynamic path.
Any ideas how to fix this?
One other thing you could do is create a directory like /downloads and upload your files there.
From there create static links to the files using the c5 html editor.
Then the files would have nothing to do with the file manager.
If it's the hosting environment, what resources will the site need? Memory is set to 32mb - is this enough?
Downloading files still kills the site.
I have tested this on Concrete5.org own site - I downloaded Concrete5 and it hangs the entire site during the download and releases as soon as you cancel or finish the download.
It's not my site. It's not our hosting environment. It's definitely Concrete5 that's the problem.
I have tried this on both Safari and Firefox. I am a Mac user (but I doubt that's the issue). I tried hosting it on our own server here and had someone externally test it and same problem - so this makes 3 servers we've tried it on PLUS concrete5's own site.
It does not kill the whole site. It does, however, make your session temporarily unavailable. You can verify this by opening a separate browser and hitting your site while the download takes place. The downloading browser will be unavailable to browse the site. The other browser will be fine.
This isn't great, obviously, but I recently discovered a simple fix for this. Try forking your download script and adding
somewhere in it. Preferably as close to the end before the download commences as possible.
Thanks for the fast fix Andrew.