Well I asked and no symlinks allowed unfortunately. He says symlinks can be used to gain access to the root of the machine.
On Jun 19, 11:02 am, acoustic_overdrive <[EMAIL PROTECTED]> wrote: > Hi Marcin, > > Sorry I'm not that up to speed with linux filesystems but I'll have a > go at explaining... > > The files are stored on an NFS server which has two mountpoints on the > webserver, one of which is writable (where my tmp stuff is) and the > other is read-only (where the rest of my application code and webroot > is). I'm not allowed any more mountpoints and so I need the shared > writable folder to be outside this cake application as it is going to > be shared by several cake applications, not just one. Otherwise I > would have asked him to mount it as app/tmp inside my app and keep the > file structure as intended. > > so my structure on the NFS server is: > > docroot/app1 > docroot/app2 > docroot/app3 > sharedtmp/app1 > sharedtmp/app2 > sharedtmp/app3 > > and on the webserver it looks like this: > > docroot/app1 > docroot/app2 > docroot/app3 > docroot/sharedtmp/app1 > docroot/sharedtmp/app2 > docroot/sharedtmp/app3 > > I think the whole point in this exercise is so he can separate > readable and writable folders without having to add more mountpoints > in future. > > He also disabled symlinks for security reasons so I can't use > mod_rewrite either :-( > > But what you're suggesting could be interesting actually. Can I create > three symbolic links from the sharedtmp to put my tmp folders back > where they should be inside each app? > > On Jun 19, 10:33 am, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > > > can't you just symlink the directories ? > > > On Thu, Jun 19, 2008 at 10:02 AM, acoustic_overdrive > > > <[EMAIL PROTECTED]> wrote: > > > > Hi Dave, > > > > Thanks for the tip - I didn't realise that. I will give that a try. If > > > I set that do you think the TMP constant is ignored? or is it still > > > used for logs? > > > > Jamie > > > > On Jun 17, 9:05 pm, DaveMahon <[EMAIL PROTECTED]> wrote: > > >> Actually, there's an even easier way - and the official one to boot! > > > >> Edit the cache command at app/core/config.php to look like > > > >> Cache::config('default', array('engine' => 'File', 'path' => '/custom/ > > >> tmp/path')); > > > >> Full notes for this command are in config.php. > > > >> On Jun 16, 1:03 pm,acoustic_overdrive<[EMAIL PROTECTED]> > > >> wrote: > > > >> > Hi Dave thanks for checking. > > > >> > I'm not using mod_rewrite, and I've just realised this means that it > > >> > will actually get its folder structure set up by the index.php in the > > >> > root of the installation, not the bootstrap or index.php in webroot. > > > >> > Which also means I think I've solved my problem because definingTMP > > >> > in that index.php file seems to work fine. > > > -- > > Marcin Domanskihttp://kabturek.info --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---