Results 1 to 3 of 3
December 2nd, 2002, 10:20 AM #1
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?
December 2nd, 2002, 01:50 PM #2
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.
per: David Cusimano
December 2nd, 2002, 02:31 PM #3
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?
By NjDank in forum Search Engine OptimizationReplies: 4Last Post: May 19th, 2011, 11:04 PM
By htchmn in forum WebMerge (Fourthworld.com)Replies: 6Last Post: November 29th, 2006, 10:52 AM
By papabear in forum WebMerge (Fourthworld.com)Replies: 5Last Post: December 22nd, 2004, 12:28 AM
By dak142 in forum WebMerge (Fourthworld.com)Replies: 4Last Post: June 5th, 2004, 09:40 PM
By jpalbicke in forum Andy Rodriguez ConsultingReplies: 1Last Post: March 31st, 2004, 01:59 PM