Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore -Selling Large Files & Server PHP Memory
Tagged: (cant remember the rest), 0 byte, large files, W3 Total Cache
- This topic has 6 replies, 4 voices, and was last updated 11 years, 10 months ago by admin.
-
AuthorPosts
-
July 7, 2012 at 9:29 pm #6829neil4196Member
Hi,
I have been selling a product (100mb zip file) using eStore. I am considering changing web hosting provider, but want to ensure the new provider can offer sufficient RAM to enable the 100mb file to be downloaded without fault.
I contacted a possible new hosting provider about this and they emailed me the following message:
‘Based on the page that you have linked us to [Selling Large Files with WP eStore], the application seems to require a higher amount of PHP memory, but an estimate is not provided. We offer 80MB of PHP memory on our webspaces which is usually more than sufficient for most plugins. We have not tested WP E-store plugin on our servers, however, it would be best to confirm with the plugin developer if 80MB of PHP memory is sufficient for the plugin to work correctly.’
Is 80MB of PHP memory sufficient?
Many thanks.
July 7, 2012 at 10:53 pm #47085wzpModerator80MB is sufficient, in most cases. However, there are many other factors that you must consider. This is not an inclusive list of considerations; just primary concerns.
If you are using the PDF Stamper plugin, you may run out of PHP memory; depending upon the PDF file being processed.
If you are using a virtual shared (different than a regular shared) server; you may encounter path mapping issues, when the download manager tries to resolve file paths.
Shared servers, depending on who else you share the physical server with; may result in corrupted downloads, because of processing delays that cause HTTP session timeouts to occur during the download of large files.
Depending upon the host’s own network and geographical location, you may encounter HTTP session timeouts, when downloading large files.
PHP “safe mode” settings that may conflict with the settings you are currently using; may require you to use a different download method.
In other words, nothing is cast in stone, as to whether or not you will be able to have a problem free transition.
Since your concern is for the downloading of large ZIP files, perhaps you might want to consider the use of eStore’s native Amazon S3 integration. Everyone who previously had downloading issues reports that all their issues disappeared, once they switched to Amazon S3.
January 4, 2013 at 4:48 pm #47086wardbroMemberI am trying to resolve issues with selling large files. Some are as large as 140MB. I have gone through the entire thread: https://support.tipsandtricks-hq.com/forums/topic/downloaded-file-size-is-0-zero-byte, which helped resolve some issues with 0 byte files lower than 100MB, but not over 100MB. I read and researched the site for info and found: http://www.tipsandtricks-hq.com/ecommerce/selling-large-files-with-wp-estore-796. I contacted my host provider Hostgator and the type of account I have gives me 256MB RAM available for PHP applications. I am having the issue with WP eStore working with W3 Total Cache (W3 TC). Everything is fine without W3 TC, but when active, I continue to get 0 byte download from admin functions ‘generate link’. I have tried Hostgator as the host for my file and I have also tried your suggestion for Amazon S3. Neither are working. Please help.
January 5, 2013 at 12:16 am #47087wzpModeratorAmazon S3 should work. Please enable the debug logs and perform another test, using Amazon S3. Then post the results from the download_manager_debug.log file.
January 5, 2013 at 12:42 am #47088adminKeymasterIf you have gzip compression enabled in your W3TC plugin then you would see that behavior. Go to the W3TC plugin settings and turn off all caching except page caching. Now empty the cache and try a download so we can see prove the theory.
If you want to use amazon s3 then you don’t have to worry about anything else. It should work regardless given you have done the setup correctly. If you are going to use amazon s3 then you don’t need to worry about your host’s PHP memory limit or anything else. So lets first decide on which one you are going to use so we can troubleshoot accordingly.
Are you okay to use Amazon s3? If you are, then have you watched the video from the amazon s3 documentation and setup your eStore downloads?
January 5, 2013 at 2:05 am #47089wardbroMemberI would prefer to use my host provider. Not Amazon S3 if possible. I have gzip compression unchecked under ‘Browser Cache’. I turned off all caching except page caching and emptied all cache. I tried another download and it still reads 0 bytes. I’m not sure if you want me to post something here like results or something, but if you do, please instruct me how to retrieve whatever information/results you are looking for. Thanks.
January 5, 2013 at 7:09 am #47090adminKeymasterOkay, I have seen one other user who had this similar issue with W3TC plugin and it turned out that there was an issue in the .htaccess file. Please check the conversation between “boagworld” and myself in the following post which might help:
https://support.tipsandtricks-hq.com/forums/topic/downloaded-file-size-is-0-zero-byte/page/5
-
AuthorPosts
- You must be logged in to reply to this topic.