Friday, January 29, 2010

Re: Localsite Virtual Setup

On Jan 29, 1:00 pm, Jon Bennett <jmbenn...@gmail.com> wrote:
> Hi Dave,
>
> > I want to set up my virtual environmant so i can use 1 copy of Cake and all
> > site being developed can use that 1 copy.
>
> Pressumming you're using Apache. You just need to set a vhost up for
> each site, eg:
>
> domain.dev
> another-domain.dev
>
> you then have the cakephp APP folder inside each, and point the
> document root of each at the web root inside, eg:
>
> domain.dev = /projects/domain.dev/app/webroot
> another-domain.dev = /projects/another-domain.dev/app/webroot
>
> you then have a 'libs' folder at the location, eg:
>
> /projects/libs/cakephp/cake_1.2.5
>
> and set the define in each webroot to point at the correct place, eg:
>
> in /projects/domain.dev/app/webroot/index.php
>
> define('CAKE_CORE_INCLUDE_PATH', DS.'libs'.DS.'cakephp'.DS.'cake_1.2.5');

Just to add to this, I create a soft link to the Cake dist (and I
store it elsewhere but that's not important).

ln -s cake_1.2.5 cake

define('CAKE_CORE_INCLUDE_PATH',
DS.'usr'.DS.'lib'.DS.'php'.DS.'cake');

This way, if testing a newer version, you just need to change the soft
link, instead of your project files.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: