I will try that next.  I think I am making some headway here.  This is
what I have changed so far in the domain.com/app/index.php and the
domain.com/app/webroot/index.php

define('CAKE_CORE_INCLUDE_PATH', '/home/username');

This seems to work and now my app can find my cake directory in /home/
username/cake.

This now leads me to a second problem.  It seems that when I access,
www.domain.com, app can see cake but, cake cannot see app. Here is the
new error:
Warning: require(config/core.php) [function.require]: failed to open
stream: No such file or directory in /home/.target/vanrot/cake/
bootstrap.php on line 38

On line 38, there is this:
if (!isset($bootstrap)) {
require CORE_PATH . 'cake' . DS . 'basics.php';
require CORE_PATH . 'cake' . DS . 'config' . DS . 'paths.php';
require APP_PATH . 'config' . DS . 'core.php';
<--------------------------line 38
}

My understanding was, that once I access app/index.php, it sets the
app path and that would now be viewable by cake.  Seems not.  I will
be looking into this a little more and maybe even adding some code to
the core lib to use a session variable or something.

Also, Feris, thanks for the suggestion but, I don't see the username
and group as a problem right now but, I will definitely keep that in
mind.  All of the folders and files have the same username and group.

Thanks so much for the replies!  I will keep hacking away at it until
it submits.

On Jul 19, 11:37 am, "Pablo Viojo" <[EMAIL PROTECTED]> wrote:
> From the folder structure you present i think you should define:
>
> define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'username'.DS.'domain.com
> '.DS.'cake')
>
> as long as /domain.con/cake is "normally" set at
> /home/.target/username/domain.com/cake
>
> Even you could set cake on a folder that's not accesible through an url, so
> not publicly accesible, anywhere under /home/.target/username
>
> --
> Pablo Viojo
> [EMAIL PROTECTED]://pviojo.net
>
> On 7/19/07, Christopher E. Franklin, Sr. <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi all, I have searched around for an answer to this but, none of the
> > posts I have found come close to my scenario.
> > I am using Dreamhost which allows me to make subdomains.  These
> > subdomains are represented as different folders on the file system.
> > So, I have, for example:
> > /-
> > -domain.com/
> > -sub.domain.com/
>
> > What I am wondering, is, I want the sub.domain.com to have it's own
> > app but, I want to share one cake installation for domain.com as well
> > as sub.domain.com.
>
> > I was thinking I can do this:
> > /-
> > -sub.domain.com/
> >      -app/
> > -domain.com/
> >      -app/
> > -cake/
>
> > I tried to install it this way and modified the /domain.com/app/
> > index.php to try and tell the app where to find cake but, to no avail.
>
> > Any ideas on what I would need to do to make this scenario work?
>
> > The error I get is this:
> > Warning: include(cake/bootstrap.php) [function.include]: failed to
> > open stream: No such file or directory in /home/.target/username/
> > domain.com/app/webroot/index.php on line 77
>
> > Warning: include() [function.include]: Failed opening 'cake/
> > bootstrap.php' for inclusion (include_path='/home/.target/username/
> > cake:/home/.target/username/domain.com/app/:.:/usr/local/php5/lib/php:/
> > usr/local/lib/php') in /home/.target/username/domain.com/app/webroot/
> > index.php on line 77
>
> > Fatal error: Can't find CakePHP core. Check the value of
> > CAKE_CORE_INCLUDE_PATH in app/webroot/index.php. It should point to
> > the directory containing your /cake core directory and your /vendors
> > root directory. in /home/.target/username/domain.com/app/webroot/
> > index.php on line 78
>
> > In the domain.com/app/webroot/index.php as well as /domain.com/
> > index.php, I have the following:
> > define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'username'.DS.'cake');
>
> > I have also tried it with:
> > define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'.target/
> > username'.DS.'cake');
>
> > No idea why it has .target or what I am doing wrong.  Any pointers,
> > suggestions, hints, miracles are appreciated and will be tried with
> > the results posted back ehre for future people with the same dilemma.


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