Re: [openupload-devel] permissions on templates_c
Status: Beta
Brought to you by:
tsdogs
|
From: Alessandro B. <ts...@br...> - 2012-06-19 18:28:32
|
Il 19.06.2012 19:53 Bob Miller ha scritto: > Greetings, > > I have set up openupload as a multisite installation on a server that > uses mpm-itk. In case you are not familiar, mpm-itk is an apache2 > package that changes uid of the web server based on the URL it is > serving, so that each site can be owned by an individual user. > Similar > to suexec, and others I am sure. > > The problem I am encountering is with making the templates_c > directory > writable by the web server. Since the web server has a different uid > depending on the site it is serving, owning the templates_c directory > to > the web server denies access to the directory. > > This creates a situation where I need to either make the templates_c > directory world writable (undesirable on several levels), or I need > to > add each site's uid to a group and grant that group write access to > templates_c (better, but administratively burdensome). Both of these > ideas tested as working on a sandbox server, but I am searching for > better options for production use. > > If the world was aligned to my desires, I would be able to have a > separate templates_c directory for each site on the server that I > could > keep with each site's data and www directory. So far no amount of > experimenting or googling has led me to a method where this can be > accomplished, and I am not so good with code that I have been able to > decipher where or how I might implement that. > > So the questions would be: is it possible to have a separate > templates_c > directory for each site? If there is any documentation, I haven't > found > it, a pointer would be kindly appreciated. And, assuming I cannot > have > a separate templates_c directory for each site, can anyone suggest a > cleaner way to allow all sites write access to the templates_c > directory? > Yes it's possible and it's even already available (not documented though). Use the $CONFIG['SMARTY_DATA'] variable. For more information look at the lib/base.inc.php Alessandro |