Re: Sharing tmp with other applications
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. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
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 Domanski http://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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
I can't be the only one thinking this while reading this thread - but it sounds like the server operator is excessively paranoid, keeping the system locked down far beyond what it needs to be. I'd suggest finding an alternate place to host your sites, it just sounds like this is going to cause nightmares in future. On Jun 19, 12:00 pm, acoustic_overdrive [EMAIL PROTECTED] wrote: 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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
Well I must admit I'm wondering why so much fuss, but this application was commissioned to run on their internal network and so unfortunately I have no choice but to comply! I decided against changing the path in Cache::config in the end, because logs and my thumbnail cache also need to be redirected. Defining my own TMP constant in webroot/index.php file it takes care of all of them, and seems to be working well now. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
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. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Sharing tmp with other applications
I have three applications running in subfolders of a webserver and I now have to migrate to a new server. My server administrotor has told me that due to new security policies he wishes all the writable folders for all apps to be in one place so that he can give write access to that folder only and make everything else read-only. I think I'll need to break cake up in a way it's not intended to be done. paths.php defines TMP as APP.'tmp'.DS. Can I redefine that in my bootstrap or something? It will end up looking like this: /docroot/app1 /docroot/app2 /docroot/app3 /sharedtmp/app1tmp/ /sharedtmp/app2tmp/ /sharedtmp/app3tmp/ I can't move the complete app folders into sharedtmp (though that would keep their structure intact) because he doesn't want any PHP code to be in writable folders. Can anyone help me out? Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
Actually I tried redefining it in bootstrap.php and webroot/index.php and it's already defined elsewhere by then so I can't change it in either of those. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
Really? When I add if (!defined('TMP')) echo 'Not set!'; to webroot/index.php, the text appears. On Jun 16, 11:48 am, acoustic_overdrive [EMAIL PROTECTED] wrote: Actually I tried redefining it in bootstrap.php and webroot/index.php and it's already defined elsewhere by then so I can't change it in either of those. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Sharing tmp with other applications
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 defining TMP in that index.php file seems to work fine. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---