If you use the same cake core libs, I do this on production :

Into the document root (www or htdocs), set a folder matching the
webroot of your app1 / app2

+ www
      +  app1
          - index.php
          - .htaccess
          + js
          + img
          + css

      +  app2
          - index.php
          - .htaccess
          + js
          + img
          + css

Outside of the webroot, you could have :

/home/webapp
         + cake                        // this is the cake core libs
              + cake
                 -app_controller.php
                 + libs
                 ...
         + myapp                   // your cake applications
              + app1                                     // first app
                  - app_controller.php
                  + model
                  ...
              + app2                                     // your app2
cake application
                  - app_controller.php
                  + model
                  ...

If you set properly the index.php of webroot (app1 / app2), this
should work perfectly (with mod-rewrite, remove htaccess of course)

Hope this helps


On Oct 4, 2:22 pm, cakenewbie <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am creating two applications to run on cakephp. Both applications have
> different databases. So i am thinking of using the development setup of
> cakephp (as per the cakephp manual) to make them both work simultaneously.
> This is what I have done so far-
> 1. Created a www folder -> apache root folder (Modified the httpd.conf file
> to point to this folder as document root)
> 2. Created a folder App1 inside the www folder ->
> This folder will contains
>          /app
>         /cake
>         /vendors
>         .htaccess
>         index.php
> for the first application
> 3. Created another folder App2 inside the www folder ->
> This folder will contains
>          /app
>         /cake
>         /vendors
>         .htaccess
>         index.php
> for the second application
>
> My whold idea is that when i loadhttp://localhost/App1, the first
> application is displayed and when i loadhttp://localhost/App2, the second
> application is displayed. But the problem is its not working right now.
> :confused: Are there any other changes that i need to make??
> Thanks in advance!!
>
> Regards,
> Cakephp newbie
> --
> View this message in 
> context:http://www.nabble.com/Cakephp-multiple-applications-tf4568441.html#a1...
> Sent from the CakePHP mailing list archive at Nabble.com.


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

Reply via email to