Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

what's wrong??


honunet

Recommended Posts

LOL

 

We have some really smart webhosting companies out there.

 

And even a smarter group over here.

 

PRIVACY POLICY Phone: 800-258-4406 (from within the U.S.) or 781-239-1111 (from outside the U.S.)

E-mail: chouse@law.harvard.edu

Copyright ? 2004 The President and Fellows of Harvard College

 

Anyway you need to set your tmp dir for cache and sessions to be private for your server.

 

Find out the path to your document root and change the last dir to tmp

 

So if it looks lik this

/home/virtual/myserver.com/var/www/html/

 

Make it this

/home/virtual/myserver.com/var/www/tmp/

 

You may need to make the directory or ask your hosting where it is.

Link to comment
Share on other sites

For user99999999,

 

I went through a lot of the configure.php files that previous people have posted and every one I came accross had

/home/virtual/myserver.com/var/www/html/
for the document root. If this is the case and answer then why don't more people have the same problem?

 

Thanks, Peter

Link to comment
Share on other sites

For user99999999, (again)

 

I had the same problem but in reverse, I had someone elses products in my store. I solved it by turning off cache. How are the two related/different and what is the document directory anyways?

 

Thanks, Peter

 

Just trying to learn something new. :)

Link to comment
Share on other sites

Hi,

 

The tmp dir is not listed in configure.php, its in the sessions/cache settings in admin. The default in osC MS2 is /tmp/. Depending on your host config it could give you

 

root:/tmp/ --> Access Denied

 

root:/home/virtual/myserver.com/var/www/tmp/ --> Access Allowed

 

But in your case its

 

root:/tmp/ --> Access Allowed For Anyone --> Walk on my files and share my session data?

 

Even though you fixed your categories the session data is still in a shared tmp dir.

 

So you need to correct it and then you can turn the cache back on.

 

You can check you document root path in Admin->Tools->Server Info and then derive your correct tmp path from there. You might need to create one and set the permissions

 

If you have two catalogs on you site maybe catalog and catalogdev then you need to privatize the tmp dir more /tmp/ and /tmp/catalogdev/.

 

You should also be able to manage your private tmp dir via FTP and I bet you cant do that to root:/tmp with FTP.

 

HTH :)

 

Dave...

Link to comment
Share on other sites

Thanks for getting back on this Dave,

 

The tmp dir is not listed in configure.php, its in the sessions/cache settings in admin. The default in osC MS2 is /tmp/. Depending on your host config it could give you

Admin -> Cache Control -> Cache Directory: /tmp/

That part looks right?

 

You can check you document root path in Admin->Tools->Server Info and then derive your correct tmp path from there. You might need to create one and set the permissions

 

In the Server Info the things I noticed are;

 

Environment

DOCUMENT_ROOT /home/xxxxxx/public_html

 

Sessions -> Local Value

session.cookie_path -> /admin/

session.cookie_secure -> Off

 

I assume that all these 3 variables are wrong. If they are, how do I change them? I have C Panel, ftp, etc.

 

You should also be able to manage your private tmp dir via FTP and I bet you cant do that to root:/tmp with FTP.

I can FTP to the root directory.

 

Peter

Link to comment
Share on other sites

Admin -> Cache Control -> Cache Directory: /tmp/

That part looks right?

 

Its WRONG for your host...

 

Should be something like this /home/xxxxxx/tmp

 

Environment

DOCUMENT_ROOT /home/xxxxxx/public_html

 

Sessions -> Local Value

session.cookie_path -> /admin/

session.cookie_secure -> Off

 

These are fine.

 

 

You should be able to FTP to this dir /home/xxxxxx/

Link to comment
Share on other sites

Hi user99999999,

 

I really appreciate your help here. I fixed the cache file via Admin -> Cache Control -> Cache Directory: /home/xxxxxxx/tmp/ . I turned cache back on via Admin -> Configuration -> Cache and the other guys catagories have disappeared which is the good news, the problem is, so have mine (with cache off the catagories show up). The catagories box is there along with "View all Products". The rest has vanished into cyberspace. Any ideas would be appreciated. I have spent the day going through the forum but have not found anything.

 

Peter

 

Why is there no crying smiley?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...