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 an application folder:
/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 of cake it will use:
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 other application
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 is no way 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 production use.

 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
> application in 'app' and other
> application in 'second_app'?
> Another thing if I have my system auth in main application and I would
> that only some users can use the second application? How can I do
> that?
> Many Thanks
> Marco
>
>
> On 13 Nov, 14:10, jeffy <[EMAIL PROTECTED]> wrote:
> > I know it's possible to keep main application in 'app' and other
> > application in 'second_app', but what if they are written on different
> > versions of cake?
>
>
> >
>



-- 
[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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to