- Posts: 35
- Thank you received: 1
Downloadable products larger than 1GB
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0
I've attached a copy of my php.ini file settings (I can't change anything though.)
Was wondering if there was a way to overcome the limitations of this file or is there another way I can go to make it so I can sell files that are 5+ GB?
Please Log in or Create an account to join the conversation.
The memory limit is not the problem in your case ; but the "max execution time".
It means that if the user haven't download the file within 60 seconds, the server will shut down the PHP process and the user download in the same time.
In order to secure the download, the server need PHP or a specific module.
So if you want to deliver large files and PHP do not give you the possibility ; you'll need to use server systems like "X-Transfer" or "mod secure download".
These are features/modules for Web Servers, and if your hosting do not provide them, I'm afraid that it will be complicated for you to provide secured downloadable files.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
You recommended 2 different Apache modules (X-Transfer & mod secure download) and Phillip recommended mod_XSendfile ( tn123.org/mod_xsendfile/ )
I'm a complete newbie when it comes to Linux and Apache, but I've gotten my site transferred to a Linux Server and I have Root access to it so I can finally add the module(s) I need, but I have no idea on how to go about doing that. Do I need all 3 modules to push files larger than 3 GB or do I just need 1 of them? How do I download the file, and get it working with Apache?
I'm positive that these questions are outside the scope of what you guys do here, but I really have no where else to turn. Any assistance would be appreciated.
Please Log in or Create an account to join the conversation.
"X-Transfer" is xsendfile apache2 module.
It's also a feature from lighttpd and which is supported by nginx via X-Acel ( www.nginx.com/resources/wiki/start/topics/examples/xsendfile/ )
HikaShop will detect if the xsendfile module is available and will use it if so. So all you need to do is follow the install and configuration procedure at tn123.org/mod_xsendfile/ to get it added to your apache:
There is nothing to do in HikaShop.Grab the source.
Compile and install
apxs -cia mod_xsendfile.c
Restart apache
That's all.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The link to download it is also on that same page:
[strike][/strike]
tn123.org/mod_xsendfile/mod_xsendfile.c
Please Log in or Create an account to join the conversation.
#hash(sha256:8e8c21ef39bbe86464d3831fd30cc4c51633f6e2e002204509e55fc7c8df9cf9)
Please Log in or Create an account to join the conversation.
apxs -cia mod_xsendfile.c
Getting an apxs command not found error....
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It says that you don't have gcc. So you'll have to first install gcc on your server.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.