The location of document root (app/webroot/ in CakePHP land) is
variable. One can put the entire app in a directory accessible by each
vhost/webserver/what-have-you, and also make sure its somewhere that
can be seen by php.

Have the webserver serve up any request that isnt a static file by the
'shared' app, using url rewriting (mod_rewrite in case of apache) and
everything else is served up as usual like you'd expect from the
domains document root (assuming thats what you want for css/images
etc).

The only thing you'd have to modify, is the index.php or bootstrap.php
where the core paths are defined, and have the webroot path adjusted
based on the current hostname, also you want a customer specific
databases, so you'd need to modify the config/database.php file to
include its settings from the relevant customer path.

Thats pretty much it, probably no need to mess around with symlinks,
allthough thats also a possible solution, but that would just add to
extra administration and setup when you need to prepare a new hosting
account.

On Sat, Apr 16, 2011 at 11:48 PM, cricket <[email protected]> wrote:
> On Sat, Apr 16, 2011 at 3:28 PM, Vitor Pacheco <[email protected]> wrote:
>> you can configure additional folders for your classes in bootstrap.php
>> http://book.cakephp.org/view/916/Additional-Class-Paths
>
> Good point. That would be better.
>
> Whether the original idea is a good one, though ...
>
> --
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to