piperman Posted February 16, 2010 Share Posted February 16, 2010 Hi Everyone, I'm really at my wits end with this, i've been reading all the forums for the past 2 weeks, but i still cant figure out the problem. My downloads section is On, Redirect is Off, People have 7 days of 5 downloads to download the zip file. I've changed my php.ini file to: post_max_size=100M upload_max_filesize=100M My Max zip file is around 80mb. The files were zipped with winzip 14, They work perfect on my computer (zip and unzip), and when i download them direct using FTP they work perfect also. They work perfect if i put them into another folder on the server and direct http download them. I've setup a htaccess file to secure the folder to prevent direct access, could this be the issue. My zip files are in the download section as they should be. They whole system works fine sometimes. Customers pay, and they receive the Link to download, the download begins, but 80% of the time, the file is corrupt, though sometimes it does work. It never works if you try to download 2 files at once. This is a problem, because if 2 customers are downloading from the server at once, it becomes corrupt. Having said that, i've talked to my host, and they maintain its a PHP issue, the server works perfect in the instances i've noted above in bold. i've noticed in tests that if i'm downloading a zip file to test, and using the ftp for other purposes or just uploading new products on the backend admin section of oscommerce, then the files come down corrupt. Mostly they are corrupt, about 80% of the time they are corrupt. I've uploaded the zip files via FTP using Binary code option. So really, if the backend admin is being used or if the FTP is being used at all, then all zip files being downloaded by customers are corrupt. My Max zip file is around 80mb. Sometimes i get 90% of the file, sometimes 10%. this is very frustrating. Some customers are reporting a missing header error too. I've downloaded these 2 files about 5 times each today, the actual files sizes are 61 and 58 MB but each time they have downloaded corrupt at a different (but similar) filesize each time. Download 1) 37mb and 38mb Download 2) 44mb and 44mb Download 3) 43mb and 43mb Download 4) 45mb and 45mb Download 5) 45mb and 45mb Please please please, Any help or suggestions from anyone would be great, Regards Piperman Link to comment Share on other sites More sharing options...
piperman Posted February 16, 2010 Author Share Posted February 16, 2010 It seems that i might be hitting some sort of download quota? In todays tests, both downloads stop more or less at the same time and at the same mb, approx. Any suggestions at all would be helpful. I'm really stessed out.... Ta. Link to comment Share on other sites More sharing options...
piperman Posted February 17, 2010 Author Share Posted February 17, 2010 Anyone....? Please. Piperman Link to comment Share on other sites More sharing options...
piperman Posted May 8, 2010 Author Share Posted May 8, 2010 Hi Everyone, I'm really at my wits end with this, i've been reading all the forums for the past 2 weeks, but i still cant figure out the problem. My downloads section is On, Redirect is Off, People have 7 days of 5 downloads to download the zip file. I've changed my php.ini file to: post_max_size=100M upload_max_filesize=100M My Max zip file is around 80mb. The files were zipped with winzip 14, They work perfect on my computer (zip and unzip), and when i download them direct using FTP they work perfect also. They work perfect if i put them into another folder on the server and direct http download them. I've setup a htaccess file to secure the folder to prevent direct access, could this be the issue. My zip files are in the download section as they should be. They whole system works fine sometimes. Customers pay, and they receive the Link to download, the download begins, but 80% of the time, the file is corrupt, though sometimes it does work. It never works if you try to download 2 files at once. This is a problem, because if 2 customers are downloading from the server at once, it becomes corrupt. Having said that, i've talked to my host, and they maintain its a PHP issue, the server works perfect in the instances i've noted above in bold. i've noticed in tests that if i'm downloading a zip file to test, and using the ftp for other purposes or just uploading new products on the backend admin section of oscommerce, then the files come down corrupt. Mostly they are corrupt, about 80% of the time they are corrupt. I've uploaded the zip files via FTP using Binary code option. So really, if the backend admin is being used or if the FTP is being used at all, then all zip files being downloaded by customers are corrupt. My Max zip file is around 80mb. Sometimes i get 90% of the file, sometimes 10%. this is very frustrating. Some customers are reporting a missing header error too. I've downloaded these 2 files about 5 times each today, the actual files sizes are 61 and 58 MB but each time they have downloaded corrupt at a different (but similar) filesize each time. Download 1) 37mb and 38mb Download 2) 44mb and 44mb Download 3) 43mb and 43mb Download 4) 45mb and 45mb Download 5) 45mb and 45mb Please please please, Any help or suggestions from anyone would be great, Regards Piperman I realise that i am talking to myself now, but this is just to record that I HAVE SOLVED MY ISSUE, after 2 months trying....... Eventually i went to frelancer.com and employed a helpful guy to sort out my corrupt/stopping download issue (posted above). I am now on a dedicated server, running windows. The php.ini file _ max _ limits _ timeouts setting had all been increased but to no avail. the guy i employed told me that the download.php file was good, as was the configure settings etc. The issue was being caused by server cgi and iis files. here is what he told me. All has to do with timeouts and memory limits. Timeouts: You have to look in 3 places: iis, fast-cgi, php.ini iis: increase connection time out(I've set this to 3600s, you might want to lower this depending on the average bandwidth of your users if you have that data. Average banwidth => time spent to download) fast-cgi: increase request-timeout (i've set it to 3600 also) php-ini: the settings you had were ok. inc memory limit. SO, hope this helps anyone in the future that has this issue. (whats is like in the future? Got jetpacks yet?) Let me know if it helps anyone, and thanks to all those who suggested ideas to help me out on different forums. Piperman Link to comment Share on other sites More sharing options...
MrPhil Posted May 8, 2010 Share Posted May 8, 2010 Another possibility, when php.ini changes don't appear to be doing anything, is that you require a statement in your .htaccess to tell PHP where to find the php.ini file. Something like suPHP_ConfigPath /home/ACCOUNTNAME/public_html Your hosting service should be able to tell you if this is needed. Always run the script <?php phpinfo(); ?> before and after changes to php.ini, to make sure your changes "took". Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.