amphead Posted January 16, 2004 Share Posted January 16, 2004 I don't know what problems might exsist on a shared server, so should I use the /tmp/ directory provided by host or should I create my own. I have set up two OScommerce sites on Pair Networks and both reside on the same server. I have not enable cache yet. I would assume that there are other OSC sites as well on the same server. Any suggestions or thoughts would be helpful...Seems like there would be problems since both sites would have the same file names in the /tmp/ directory. thank you Doug Link to comment Share on other sites More sharing options...
SLBlay Posted January 17, 2004 Share Posted January 17, 2004 Doug, You are right to be concerned about the temp cache directory. We're setting up osC on a shared hosting service and discovered the same issue, so we turned off cache'ing in admin till we figure it out. Client wouldn't have gone for gift store mixing with alligator zoo and shop! It actually happened. We don't yet know the actual steps (cookbook/recipe) necessary to achieve this, or how much space it will require in the client's or our hosting space. I have a reseller account, and was thinking I could give up some space in that to a temp directory so as not to impact the client's account. Any experience or knowledge, please share! ;) "When you're up to your neck in alligators, it's hard to remember that you came to drain the swamp!" Link to comment Share on other sites More sharing options...
kagg Posted January 17, 2004 Share Posted January 17, 2004 You are right not to use server's tmp directory as if there are more than 1 osCommerce websites all using cache, it will all mess up. Better create your own directory, chmod to 777 and define the path in Admin -> Configurations -> Cache Link to comment Share on other sites More sharing options...
The Criteria Posted January 26, 2005 Share Posted January 26, 2005 Doug, You are right to be concerned about the temp cache directory. We're setting up osC on a shared hosting service and discovered the same issue, so we turned off cache'ing in admin till we figure it out. Client wouldn't have gone for gift store mixing with alligator zoo and shop! It actually happened. We don't yet know the actual steps (cookbook/recipe) necessary to achieve this, or how much space it will require in the client's or our hosting space. I have a reseller account, and was thinking I could give up some space in that to a temp directory so as not to impact the client's account. Any experience or knowledge, please share! ;) <{POST_SNAPBACK}> My question is what do I do when it does happen? "And fear the day when ye shall be brought back to Allah. Then every soul shall receive what it earned and none shall be dealt with unjustly" (Qur'an 2:281) Had We revealed this Qur'an upon a mountain, surely you would have seen it humble itself and crumble out of the fear of Allah. Such are the parables We put forward to mankind so that they may reflect" (Qur'an 59:21) "Do they not consider the Qur'an? Had it been from other then Allah surely they would have found much discrepancies within it" (Qur'an 4:82) Link to comment Share on other sites More sharing options...
♥Vger Posted January 26, 2005 Share Posted January 26, 2005 BEFORE it happens you turn use cache to 'false' and on the last line of both of your configure.php files you set STORE SESSIONS to 'mysql' (because it uses the same shared tmp directory as cache). Vger Link to comment Share on other sites More sharing options...
The Criteria Posted January 26, 2005 Share Posted January 26, 2005 BEFORE it happens you turn use cache to 'false' and on the last line of both of your configure.php files you set STORE SESSIONS to 'mysql' (because it uses the same shared tmp directory as cache). Vger <{POST_SNAPBACK}> Well, err, emmm, Yes mam :-" "And fear the day when ye shall be brought back to Allah. Then every soul shall receive what it earned and none shall be dealt with unjustly" (Qur'an 2:281) Had We revealed this Qur'an upon a mountain, surely you would have seen it humble itself and crumble out of the fear of Allah. Such are the parables We put forward to mankind so that they may reflect" (Qur'an 59:21) "Do they not consider the Qur'an? Had it been from other then Allah surely they would have found much discrepancies within it" (Qur'an 4:82) Link to comment Share on other sites More sharing options...
Guest Posted February 5, 2008 Share Posted February 5, 2008 osCommerce uses a cache directory that by default is set to /tmp/ which is all well and good except for those on a shared server such as godaddy and the like - the cache files can get swapped and 2 different osCommerce installations can see each other's products, etc. I KNOW because it just happpened to me! :blush: Someone else's inventory was showing up in place of mine! I thought I'd been hi-jacked bigtime. UNTIL I figured out what was going on after about 8 hours of bull-in-a-chinashop run in circles scream and shouting, changing all my passwords, re-installing a couple time, etc, etc. I don't think there is anything wrong with using the shared /tmp/ directory on a shared server as long as you add your own subdir under it, such as /tmp/abc/ Of course you should make up your own and make it obscure so less likely someone else might use the same :-) That should create a new dir and you SHOULD be the only one writing to it. I think. osCommerce 2.2rc2a Administration->Configuration->Cache->Cache Directory->edit Link to comment Share on other sites More sharing options...
JorgeCosta Posted February 13, 2008 Share Posted February 13, 2008 something to help http://www.testdomainet.com/stefan/ Link to comment Share on other sites More sharing options...
girl Posted February 15, 2008 Share Posted February 15, 2008 something to helphttp://www.testdomainet.com/stefan/ Hi, I am trying what you haveposted. It looks great :) But when I add this line 10- Give in it “/customers/domain.com/domain.com/httpd.www/catalog/tmp/” (In case the Webshop Path is www.domain.com/catalog and click on “Go”. with my domain in my data base sort of disappears. I am guessing here "customers" should be replaced?? but with what? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.