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