Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

THE CACHE DIRECTORY


Nielsen_Trading

Recommended Posts

Hello Everyone,

 

I'm trying to configure the cache files for my website. I created a tmp directory in my root directory of my website.

 

In OS admin section:

 

Configure>cache>cache directory is set to tmp

in the tools>cache control it shows tmp but no date of creation or action. Also on top of page it shows:

Error: Cache directory does not exist. Please set this Configuration->Cache.

 

How do I set the path correctly?

 

I have read that I need to creat files, what files exactly do I need to creat and where do I put them? Are they files or file folds or both?

 

I probably won't understand what you mean at first, so if you can explain it completely and not with a 2 or 3 word sentance I would greatly appreciate that very much. I'm online for quite a while so if you are able to help please do.

 

Thank you,

Sheri

Link to comment
Share on other sites

You should use a proper cache.

http://www.oscommerce.com/community/contributions,5029

http://www.oscommerce.com/community/contributions,2873

 

For your question the path must be a fully qualified path outside the www space your host allocates. So use the osc Admin->Tools->Server Info see what is the path to your domain (or via the configure.php files) something like

/yourname/www_root/osc_catalog/

 

So you create the "tmp" directory under the top folder like:

/yourname/tmp/

 

and then you place that path in the cache directory.

 

Same thing should happen with other options that require a directory path like with sessions.

Link to comment
Share on other sites

You should use a proper cache.

http://www.oscommerce.com/community/contributions,5029

http://www.oscommerce.com/community/contributions,2873

 

For your question the path must be a fully qualified path outside the www space your host allocates. So use the osc Admin->Tools->Server Info see what is the path to your domain (or via the configure.php files) something like

/yourname/www_root/osc_catalog/

 

So you create the "tmp" directory under the top folder like:

/yourname/tmp/

 

and then you place that path in the cache directory.

 

Same thing should happen with other options that require a directory path like with sessions.

 

 

You should use a proper cache.

http://www.oscommerce.com/community/contributions,5029

http://www.oscommerce.com/community/contributions,2873

 

 

 

and then you place that path in the cache directory.

 

Same thing should happen with other options that require a directory path like with sessions.

 

 

Thank you for replying, Did you mean some thing like this:

 

For your question the path must be a fully qualified path outside the www space your host allocates. So use the osc Admin->Tools->Server Info see what is the path to your domain (or via the configure.php files) something like

/yourname/www_root/osc_catalog/

 

I didn't upload the catalog folder just it's contents.

 

/misc/32/000/044/717/9/system/php/nielsentradingco.com/php5.ini (this is my path)

 

/misc/32/000/044/717/9/system/php/nielsentradingco.com/tmp (is this what you mean?)

 

So you create the "tmp" directory under the top folder like:

/yourname/tmp/

 

Yes, this is correct.

 

I had seen your contribution and I'd like to implment it, but thought I should get the basics down first before I try to add a module.

 

Thank you again.

Sheri

Link to comment
Share on other sites

Thank you for replying, Did you mean some thing like this:

 

For your question the path must be a fully qualified path outside the www space your host allocates. So use the osc Admin->Tools->Server Info see what is the path to your domain (or via the configure.php files) something like

/yourname/www_root/osc_catalog/

 

I didn't upload the catalog folder just it's contents.

 

/misc/32/000/044/717/9/system/php/nielsentradingco.com/php5.ini (this is my path)

 

/misc/32/000/044/717/9/system/php/nielsentradingco.com/tmp (is this what you mean?)

 

So you create the "tmp" directory under the top folder like:

/yourname/tmp/

 

Yes, this is correct.

 

I had seen your contribution and I'd like to implment it, but thought I should get the basics down first before I try to add a module.

 

Thank you again.

Sheri

 

No, in the server info search for the script path. It should display the full path of the script is running.

 

search for

SCRIPT_FILENAME

 

then the first couple of folders should be the path you're looking for. (Before your .com domain in other words).

Link to comment
Share on other sites

I still haven't figured out how to edit my posts, so sorry for double posting.

 

I added the path to my configuration>cache . Then checked Tools>cache control and this is what it is showing now:

 

Cache Blocks Date Created Action

Categories Box File does not exist

Manufacturers Box File does not exist

Also Purchased Module File does not exist

 

I've tryed creating both files & folders with the above names, but to no avail.

 

What do I do now?

 

Thanks,

Sheri

Link to comment
Share on other sites

I still haven't figured out how to edit my posts, so sorry for double posting.

 

I added the path to my configuration>cache . Then checked Tools>cache control and this is what it is showing now:

 

Cache Blocks Date Created Action

Categories Box File does not exist

Manufacturers Box File does not exist

Also Purchased Module File does not exist

 

I've tryed creating both files & folders with the above names, but to no avail.

 

What do I do now?

 

Thanks,

Sheri

 

I tryed to edit my post, but said I could after I hit the submit button.

 

Here is what I had found:

 

_ENV["SCRIPT_FILENAME"] /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/server_info.php

 

Ok, what do I do with it?

 

Thanks,

Sheri

Link to comment
Share on other sites

Create the tmp here:

 

/misc/32/000/044/717/9/user/web/tmp or

/misc/32/000/044/717/9/user/tmp

 

Then specify

/misc/32/000/044/717/9/user/web/tmp/ or

/misc/32/000/044/717/9/user/tmp/

as the cache directory

Link to comment
Share on other sites

Create the tmp here:

 

/misc/32/000/044/717/9/user/web/tmp or

/misc/32/000/044/717/9/user/tmp

 

Then specify

/misc/32/000/044/717/9/user/web/tmp/ or

/misc/32/000/044/717/9/user/tmp/

as the cache directory

 

I can't create the tmp where you said, I can't go back that far.

This is the root of my website

 

Current Path: home(nielsentradingco.com)

 

admin

download

images

includes

pub

tmp

 

I can only add file after

 

Thanks,

Sheri

Link to comment
Share on other sites

ok if you set the cache directory to

 

/misc/32/000/044/717/9/system/php/nielsentradingco.com/tmp/

 

does it work? And it's strange you do not have private space outside your www.

 

You should ask your host about the private space what if you want to run some other scripts or store sessions.

Link to comment
Share on other sites

ok if you set the cache directory to

 

/misc/32/000/044/717/9/system/php/nielsentradingco.com/tmp/

 

does it work? And it's strange you do not have private space outside your www.

 

You should ask your host about the private space what if you want to run some other scripts or store sessions.

 

Yes it works to an extent:

 

Cache Control

 

Cache Blocks Date Created Action

Categories Box File does not exist

Manufacturers Box File does not exist

Also Purchased Module File does not exist

 

Cache Directory: /misc/32/000/044/717/9/system/php/nielsentradingco.com/tmp/

 

Sessions have to be stored in tmp file also.

 

 

>>>>You should ask your host about the private space what if you want to run some other scripts or store sessions.

 

I will ask.

 

Sheri

 

PS> PM me if you want

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...