sacramento1982 Posted May 2, 2009 Posted May 2, 2009 Hi, I searched all the place and in various others forums before i decided to create a new topic. I have a pdf shop (oscommerce-2.2rc2a) and when the clients downloads purchases and download a file with +2M, the download stops after some 40 to 60 seconds after the beginning. I found this report in various places, some used php.ini files to set more time to the download script and others simply gave up the oscommerce. My questions are: Where i should put this ini file and what exactly to put inside? There is another solution? Anybody have the same problem? Excuse for my bad english. Thank you for the attention and good night (or good day)! Renato
web-project Posted May 2, 2009 Posted May 2, 2009 Anybody have the same problem? no any networks problems? Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
FIMBLE Posted May 2, 2009 Posted May 2, 2009 have you checked your server error logs for an explaination, these are often overlooked but the answer is normally to be found there, or at least a pointer in the right direction. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
MrPhil Posted May 3, 2009 Posted May 3, 2009 It's common to have a PHP system default limit of 2MB or so for uploads (upload_max_filesize), but I've never heard of a limit on downloads. Ask your hosting service if they place a limit, and if so, what is the setting in php.ini to set a larger limit. If it's not that, maybe you're timing out on some other PHP limit. Have you run phpinfo(); to see all your PHP settings, and look for anythng suspiciously small?
♥geoffreywalton Posted May 3, 2009 Posted May 3, 2009 phpinfo is displayed in osc version rc2a when you go to tools in the admin area and select server info. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
sacramento1982 Posted May 13, 2009 Author Posted May 13, 2009 Thank you for the replies! But i tried everything, i tested the download outside of the shop(in the same server) and everything came alright. One little detail is when i start the download inside of the shop the ETA is unknown. Then, some seconds later the download stops. I searched for error logs in the server side and nothing came(i think). And the host support told me only limitation they do is for php scripts. The script of the download function keep running with the download? If the script times out the download is canceled as well? I found some people who had this problems and they didn't solved. I guess the size of the files don't matter, the time what takes to download it's the problem. I am still looking. Thank you for the attention! And forgive my english! Renato
MrPhil Posted May 13, 2009 Posted May 13, 2009 And the host support told me only limitation they do is for php scripts. OK, what kind of limitation? osC is a PHP script, so something your host has done is limiting your downloads. Did they give you any information on what to change in either .htaccess or php.ini to raise your limits? You will need to find out from them exactly what files need to be changed or added, and what to put in them, as this varies from system to system.
sacramento1982 Posted May 14, 2009 Author Posted May 14, 2009 Thank you for the reply! I have a new detail. All the downloads, don't matter the size, stops after 110-120 seconds. Always. I am going to see with the host support what this can be. I looked in my server info page and i have this: realpath_cache_ttl 120 max_execution_time 30 serialize_precision 100 session.cache_expire 180 default_socket_timeout 60 HTTP_KEEP_ALIVE 300 _SERVER["HTTP_KEEP_ALIVE"] 300 _ENV["HTTP_KEEP_ALIVE"] 300 The realpath_cache_ttl looks really suspect. Can i do a php.ini to increase that? And Where i would insert this? Thanks!
MrPhil Posted May 14, 2009 Posted May 14, 2009 I find it hard to believe that downloading a file is taking more than a few seconds of CPU time (longer wall clock time). You should definitely have a discussion with your host concerning what you're trying to accomplish, what you see happening, and what settings in .htaccess and/or php.ini are needed to rectify this (if possible). Don't forget to ask about "extras" that you may need to do, such as needing an entry in .htaccess to point to php.ini (some systems need that). All hosting services set some sort of time and space limits on accounts, to stop runaway scripts. On shared servers, there will be lower limits to ensure that everyone gets a fair chance at running, and no one can hog all the CPU power. If this is a free hosting service, or otherwise is serving a lot of customers on each server ("oversold"), it's possible that their limits are set so low that you will not be able to run a reasonable "real life" application such as osC. In that case, it's time to upgrade or seek a new host. Talk with your host to see if their limits can be raised by you (or for you), but don't be shocked if you find that they simply can't supply you with the resources you need at the price you're paying.
sacramento1982 Posted May 14, 2009 Author Posted May 14, 2009 I find it hard to believe that downloading a file is taking more than a few seconds of CPU time (longer wall clock time). You should definitely have a discussion with your host concerning what you're trying to accomplish, what you see happening, and what settings in .htaccess and/or php.ini are needed to rectify this (if possible). Don't forget to ask about "extras" that you may need to do, such as needing an entry in .htaccess to point to php.ini (some systems need that). All hosting services set some sort of time and space limits on accounts, to stop runaway scripts. On shared servers, there will be lower limits to ensure that everyone gets a fair chance at running, and no one can hog all the CPU power. If this is a free hosting service, or otherwise is serving a lot of customers on each server ("oversold"), it's possible that their limits are set so low that you will not be able to run a reasonable "real life" application such as osC. In that case, it's time to upgrade or seek a new host. Talk with your host to see if their limits can be raised by you (or for you), but don't be shocked if you find that they simply can't supply you with the resources you need at the price you're paying. Thanks for the clarification! I talked with the host and they say there is no time restriction on my configuration. They say may be a cache limit or others restrictions on server end. But they don't have a clue about this problem. The CPU level usage it's alright(they say). I don't know what to do. Alll the clients had problem to download big files(files what takes more than 2 minutes to complete) from my shop. I will keep searching. Thanks!
sacramento1982 Posted May 14, 2009 Author Posted May 14, 2009 A quick question about php. In my case, when i click on the download link, the script on the file download.php is executed. When the the download window open, i choose the place to save and start the download, so, the php script of the the download.php file is still being executed on the server after this? The script is executed until the download completes? Disabling the script, disbles the download?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.