Tuesday, June 2, 2009

Re: Configure cakephp for more that one local testing and development instances using wamp / xampp

I always keep multiple sites as virtual hosts in Apache (the A in WAMP/
XAMPP) and combine that with fake hostnames.

(/ets/hosts on *nix, no idea how Windows do it)
hostnames, all pointing to localhost might be
portfolio.site
great.site
tutorials.site

If you then setup Apache in your *amp to use vhosts. At their most
simple they look like:

NameVirtualHost *:80
<virtualhost *:80>
DocumentRoot /path/to/cake/portfolio/webroot
ServerName portfolio.site
</virtualhost>
<virtualhost *:80>
DocumentRoot /path/to/cake/great/webroot
ServerName great.site
</virtualhost>

You can see that I have created multiple "app" folders and called them
by the name of the project. I have then pointed Apache to the webroot
of each one for a "production" deplay locally. For me this is one less
thing that changes when I deploy and I very rarely have deployment
problems with this setup.

On Jun 1, 11:17 pm, pixie <peter.ojia...@gmail.com> wrote:
> Hi,
>
> Been developing with php on and off for 2 years now and looking to try
> my hand at web based apps using cakephp.
>
> How can i configure more than one testing and development instance on
> my local machine for each project or tutorial i work on as i learn?
> e.g. C:\xampp\htdocs\cakeProjOne, C:\xampp\htdocs\cakeProjTwo and C:
> \xampp\htdocs\cakeProjThree.
>
> What then must i take note of when uploading the app to an online
> testing/live server.(Also shared but Cpanel based)
>
> Thanks for all help and your consideration.
>
> P!
--~--~---------~--~----~------------~-------~--~----~
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: