(1) For those whose servers do not allow access to the innermost sanctum where changes to Apache are even doable, there remains the option of setting up an Amazon EC2 or other "cloud" server. Typically the user forums show a preponderance of people who know how to spell Linux and Apache but not enough more than that to bite the whole bullet. An alternative, then, is to have somebody set it up, install the module, and be done with it. That approach may or may not be cost effective.
I've found setting up Amazon EC2 to be fairly expedient in comparison to some other arrangements, and in that regard it can be surprisingly quick and trouble-free to do, but it does pose substantial headaches in advance if one does not know the pro forma steps and the allowable exceptions in choosing and launching distributions of Linux, so on the one hand it's not really ideal for novices, and on the other hand it's a place where one with the time to spend can learn some of the ropes for the first time.
(2) See http://forum.opencart.com/viewtopic.php ... 05#p415164 for a breakdown of steps for the module where you DO have the required access.
I've found setting up Amazon EC2 to be fairly expedient in comparison to some other arrangements, and in that regard it can be surprisingly quick and trouble-free to do, but it does pose substantial headaches in advance if one does not know the pro forma steps and the allowable exceptions in choosing and launching distributions of Linux, so on the one hand it's not really ideal for novices, and on the other hand it's a place where one with the time to spend can learn some of the ropes for the first time.
(2) See http://forum.opencart.com/viewtopic.php ... 05#p415164 for a breakdown of steps for the module where you DO have the required access.
Hello Xsecrets,
I appreciate that this thread is about 4 years old now, but I wondered if you might assist. My hosting company has installed xsendfile for me to use to deliver downloads from OpenCart sales. I have version 1.5.5.1 of OC and obviously the code no longer matches what is shown below. Would you be kind enough to tell me where to insert the call to xsendfile in OC 1.5.5.1, to prevent me making some calamitous mistake (the store is up and running and I don't want to mess it up). Thank you so much in advance for any help you can offer.
David.
I appreciate that this thread is about 4 years old now, but I wondered if you might assist. My hosting company has installed xsendfile for me to use to deliver downloads from OpenCart sales. I have version 1.5.5.1 of OC and obviously the code no longer matches what is shown below. Would you be kind enough to tell me where to insert the call to xsendfile in OC 1.5.5.1, to prevent me making some calamitous mistake (the store is up and running and I don't want to mess it up). Thank you so much in advance for any help you can offer.
David.
Xsecrets wrote:well basically you have two options use xsendfile which is probably the best option for you, but not a good option for opencart as a whole since most hosts don't have that mod installed in apache. two is to send the file in chunks instead of all at once which may be a better solution for opencart overall if Daniel even wants to bother.
for xsendfile I haven't tested this, so I can't say weather it works or not as I don't have a server with xsendfile, but according to what I've read it should work.
in catalog/controller/account/download.php findand change it toCode: Select all
if (file_exists($file)) { header('Pragma: public'); header('Expires: 0'); header('Content-Description: File Transfer'); header('Content-Type: ' . $mime); header('Content-Transfer-Encoding: ' . $encoding); header('Content-Disposition: attachment; filename=' . ($mask ? $mask : basename($file))); header('Content-Length: ' . filesize($file)); $file = readfile($file, 'rb'); print($file); } else {
Code: Select all
if (file_exists($file)) { header('Pragma: public'); header('Expires: 0'); header('Content-Description: File Transfer'); header('Content-Type: ' . $mime); header('Content-Transfer-Encoding: ' . $encoding); header('Content-Disposition: attachment; filename=' . ($mask ? $mask : basename($file))); header('Content-Length: ' . filesize($file)); header('X-Sendfile: ' . $file); } else {
Pertaining to gmedia01's request (7 mo. back) for a "walk" through xsendfile installation, see relatively more current http://forum.opencart.com/viewtopic.php ... 64#p415164 in the same vein. Granted, the walk may seem alike taking on a ski jump on snowshoes or an office elevator on skis, but it ends well.
I have a similiar problem with v2.0.1.1 our download crashes at exactly 500mb. tried the xsend method however I cant find the piece of code to edit on the catalog/controller/account/download.php as it may have changed with the new version
is there anyone who can kindly help with instruction on how to resolve this
Thanks in advance
is there anyone who can kindly help with instruction on how to resolve this
Thanks in advance
Car DVD Navigation, 2 din Navigation,Car Radio, In-dash Navigation, Car Audio and Rear View Camera Store - South Africa - http://www.soundlouder.co.za
Who is online
Users browsing this forum: No registered users and 175 guests