Post by butte » Fri Jun 21, 2013 5:21 am

Compiling is what is done to source code to make it machine readable; usually compiled for particular processors (Intel/AMD, version/level, etc.). Compilers are available, search web for compiling Apache modules.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by butte » Sat Jun 22, 2013 1:29 am

(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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by paulrd » Wed Jun 26, 2013 6:06 pm

Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename. By using this tool you can't feel any other problem like that.

Newbie

Posts

Joined
Wed Jun 26, 2013 6:04 pm

Post by butte » Thu Jun 27, 2013 12:44 pm

Path length is not the problem, file size is the problem; not characters in a string, but megabytes in a lump.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by davidnorth » Sat Jul 20, 2013 6:17 am

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.

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 find

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));
                
                    $file = readfile($file, 'rb');
                
                    print($file);
                } else {
and change it to

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 {

Newbie

Posts

Joined
Sat Jul 20, 2013 6:13 am

Post by butte » Mon Jul 22, 2013 11:58 pm

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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by rmsa » Sat Aug 24, 2013 9:08 am

Qphoria, I have a 1.5.1.3 with the same problem in my hoster. But, they can not want to change the wait_timeout! I am trying to fix it! Can anyone help me? The last OC fix the problem?

Newbie

Posts

Joined
Sat Aug 24, 2013 7:59 am

Post by Tee.Mothiba » Sat Feb 25, 2017 2:32 am

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

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

[/b]


New member

Posts

Joined
Sun Nov 11, 2012 6:42 pm
Who is online

Users browsing this forum: No registered users and 175 guests