On Feb 5, 8:47 am, zeugme <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm wondering what kind of software setup are you using on Mac OS as a
> developper machine ?


On the general setup question I just use the standard apache and php
along with the MySQL package from mysql.com
I have never used any *AMP setup for any length of time.

I use Apache vhosts and some dummy host data to allow for multiple
sites at once.

The reason I use this setup is that I can setup my development system
to match deployment and at the same time work on several projects on
the same cake-install. If I find out I need to install onto some nasty
web-host I can mimic their apache-config for one vhost and to a lot of
deployment-testing locally.

You can get the same with MAMP pro I believe, but I'd rather keep my
money when only MySQL needs to be installed.

Some details:
in /path/to/cake/ I duplicate the app folder and rename it for each
project. They all use the same cake-core and any updates I install or
vendor-libs I put in the "global" vendors folder.
/path/to/cake/one/...
/path/to/cake/another/...

in /etc/apache2/users/martin.conf (valid for 10.5) (could be any
apache-aware conf file, I choose to use the user file)
<directory "/path/to/cake/*/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</directory>
<virtualhost *:80>
    DocumentRoot path/to/cake/one/webroot
    ServerName one.site
</virtualhost>
<virtualhost *:80>
    DocumentRoot path/to/cake/another/webroot
    ServerName another.site
</virtualhost>


in /etc/hosts (up to 10.4 you could use netinfo instead)
# Virtual Sites
127.0.0.1       one.site
127.0.0.1       another.site

When a new vhost is added apache needs to be restarted (ofcourse).

I never put cake into the DocumentRoot of my webserver unless the web-
hosting only provides acces directly to the webroot. (Some cheap ones
do.) One of the good things about cake is that I can keep all of my
application out of the public diretories of the webserver. If I have
to I prefer to pt cake into the app-directory and change the include
paths just so I can keep app/webroot as the DocumentRoot.

That's how I do it, anyway.

There is a bakery article about setting up under Mac OS X. It is a bit
ld now but there is still a lot of relevant info in it.
http://bakery.cakephp.org/articles/view/installing-cakephp-on-macos-x


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