Results 1 to 3 of 3
  1. #1
    ABW Ambassador CrazyGuy's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,463
    David

    The default paths to the cache dirs in amazon.ini seem to assume they are "below" where the script is.

    Can I set these to anywhere - a full server path (/home/virtual/etc/etc)? - basically so sites on the same server can share the cache dirs?

    I know I could just try it - but I'm not sure how I would know it's working =:>

    Are you Crazy?

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    Short answer: depends upon your webserver.

    You can set the cache directory cache.dir (and the image cache directory imgCache.dir) to a full server path so that all websites on your webserver try to write to one common cache directory (and one common image cache directory). The default of cache.dir (and of imgcache.dir) is a path relative to the directory where amazon.pl is located.

    If you have multiple websites on the same server, then you can set all the cache.dir variables to the same full server path (e.g.: /home/virtual/mysite.com/cgi-bin/amazon-cache or whatever). And do the same for the imgcache.dir variables.

    However, a common directory may not work if your webserver runs each website's httpd process under a different user account (e.g.: admin1, admin2, admin3, ...). Some webservers run the httpd process under one user account for all websites (e.g.: www).

    You may have to set the permissions of the common amazon-cache (and amazon-imgcache) directory to CHMOD 777 (rwxrwxrwx) -- though first try CHMOD 775 (rwxrwxr-x). This has not been tested.

    To see if the common directory works, purge the cache -- login using SSH and rm all the .tmp files in the common cache. Then access /cgi-bin/amazon.pl at one website and look at the cache. Then access /cgi-bin/amazon.pl?page=2 at another of your websites and look at the cache -- more files should be there. If not, then you can't use a common directory.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    ABW Ambassador CrazyGuy's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,463
    I understand - it won't work.

    Got half-way down your reply and realised ownership of the cache dirs and the files therein was going to be the problem.

    Doggone file ownerships keep tripping up my plans to streamline management of all my domains on one server [img]/infopop/emoticons/icon_mad.gif[/img]

    Thanks for the explanation though - evry day I understand more ...

    Are you Crazy?

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Friendly URL Paths
    By NjDank in forum Search Engine Optimization
    Replies: 4
    Last Post: May 19th, 2011, 11:04 PM
  2. Getting started - relative paths problem
    By htchmn in forum WebMerge (Fourthworld.com)
    Replies: 6
    Last Post: November 29th, 2006, 10:52 AM
  3. Correcting image url paths
    By papabear in forum WebMerge (Fourthworld.com)
    Replies: 5
    Last Post: December 22nd, 2004, 12:28 AM
  4. Webmerge Problem naming file paths
    By dak142 in forum WebMerge (Fourthworld.com)
    Replies: 4
    Last Post: June 5th, 2004, 09:40 PM
  5. Had to move all url paths back to...
    By jpalbicke in forum Andy Rodriguez Consulting
    Replies: 1
    Last Post: March 31st, 2004, 01:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •