In this way which is the url to access to the first application and which is the url to access to the second application?
On 13 Nov, 19:46, jeffy <[EMAIL PROTECTED]> wrote: > Thanks a lot. I will try this > > On Nov 13, 4:47 pm, "DJ Spark" <[EMAIL PROTECTED]> wrote: > > > You have both in the manual > > http://manual.cakephp.org/chapter/installing > > > put your webroot folder for each aplication in their apache folder, for > > example > > /home/youruser/website1.com > > /home/youruser/website2.com > > > suppose you create anapplicationfolder: > > /home/youruser/bin > > /home/youruser/bin/apps > > /home/youruser/bin/apps/app1 > > /home/youruser/bin/apps/app2 > > /home/youruser/bin/cake > > /home/youruser/bin/cake/cake1.1 > > /home/youruser/bin/cake/cake1.2 > > > go to each index.php in those folders, and edit them: ( I striped the > > original file comments) > > > where: > > define('ROOT', dirname(dirname(dirname(__FILE__)))); > > change this to: > > define('ROOT', '/home/youruser/bin/apps'); > > > where: > > define('APP_DIR', basename(dirname(dirname(__FILE__)))); > > change to: > > define('APP_DIR', 'app1'); /* it's JUST THE APP FOLDER */ > > > Now you say which version ofcakeit willuse: > > define('CAKE_CORE_INCLUDE_PATH', ROOT); > > change to: > > define('CAKE_CORE_INCLUDE_PATH', '/home/youruser/bin/cake/cake1.1'); > > > [it will search for a 'cake' folder inside it, ok ?] > > > now, edit the same file to the otherapplication > > define('ROOT', '/home/youruser/bin/apps'); > > define('APP_DIR', 'app1'); > > define('CAKE_CORE_INCLUDE_PATH', '/home/youruser/bin/cake/cake1.2'); > > > And that's it: a MUCH more secure (there isnoway a web user > > accessing critical configuration files outside apache webroot > > ...unless with server access, which is another different problem :) , > > easier to update , and properly configured for productionuse. > > > spark > > > On Nov 13, 2007 10:40 AM, [EMAIL PROTECTED] > > > <[EMAIL PROTECTED]> wrote: > > > > Can ou make me an example about how is possible to keep main > > >applicationin 'app' and other > > >applicationin 'second_app'? > > > Another thing if I have my system auth in mainapplicationand I would > > > that only some users canusethe secondapplication? How can I do > > > that? > > > Many Thanks > > > Marco > > > > On 13 Nov, 14:10, jeffy <[EMAIL PROTECTED]> wrote: > > > > I know it's possible to keep mainapplicationin 'app' and other > > > >applicationin 'second_app', but what if they are written on different > > > > versions ofcake? > > > -- > > [livesets]http://djspark.com.br/ > > [web]http://sydi.net > > [filmes]http://melhoresfilmes.com.br --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
