Re: A patch to keep cache directory out of webroot

Jonn Beames <[email protected]> Tue, 12 Oct 2004 17:59:19 -0700
Newsgroups gmane.comp.cms.xaraya.patches
Organization Xaraya
Message-ID <[email protected]>
jojodee wrote:
> "Jonn Beames" <[email protected]> wrote in message 
> news:[email protected]...
> 
>>(mostly just replacements of hardcoded var paths with calls to 
>>xarCoreGetVarDirPath())
>>
>>This works, but I'm sure there are other ways to acheive the same goal. 
>>What do people say?  All are welcome to participate in the process.
> 
> 
> Don't want things to get mixed up - ie we are talking about a cache 
> directory, and we are also talking about somewhere to store our 
> config.system.php file  for xaraya install and xaraya boot ...
> 
This seems to be a common misconception.  No, we are not taking about 
the cache directory and the config file.  We are talking about moving 
all writable directories out of the webroot.  I believe the confusion 
stems from the fact that Alla only noted var/cache as a writable 
directory.  However, var can hold many, and potentially many more 
writable directories.

> Two aspects I'm interested in in more detail and feel it needs to be thought 
> out more generally in relation to many areas:
> 
> 1. Could I ask what is planned to be stored in the /var path ? Or another 
> way - what will the /var path be used for, or what do we want and not want 
> it to be used for given it is used for many things at the moment? I'd like 
> to see a clear and specific definition or listing of what will and won't be 
> stored in the /var path.
> 

Commonly understood UNIX definition of the var directory:

var - Variable data. Data files that are continually being recreated or 
updated.

It is the place where the system stores cache files, mail and print 
spools, log files, data files from running appications, system state 
data, etc.

The subdirectories should be clearly named to define what can be found 
in them.

  - Jonn