Mac OS developper setup

View: New views
9 Messages — Rating Filter:   Alert me  

Mac OS developper setup

by zeugme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I'm wondering what kind of software setup are you using on Mac OS as a
developper machine ?

I'm using MAMP for the Apache, PHP, MySQL stack and IntelliJ for  code
edition.

I created a symlink from MAMP htdocs to my dev web folder.

I'm not sure but I think I might have a mod_rewrite issue, maybe due to
that MAMP htdocs symlink or apache default config ?

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


Re: Mac OS developper setup

by boyracerr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I use MAMP for my PHP5, and the standard Apache that comes with the
Mac plus a selfcompiled PHP for PHP4. They seem to live quite happily
together. I have had some problems before, but got things working
(with the exception of Jake, which is another story).

What problem are you having? Any error message?

Ben

On Feb 5, 9:47 am, zeugme <zeu...@...> wrote:

> Hi,
>
> I'm wondering what kind of software setup are you using on Mac OS as a
> developper machine ?
>
> I'm using MAMP for the Apache, PHP, MySQL stack and IntelliJ for  code
> edition.
>
> I created a symlink from MAMP htdocs to my dev web folder.
>
> I'm not sure but I think I might have a mod_rewrite issue, maybe due to
> that MAMP htdocs symlink or apache default config ?

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


Re: Mac OS developper setup

by MonkeyGirl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I created a symlink from MAMP htdocs to my dev web folder.
>
> I'm not sure but I think I might have a mod_rewrite issue, maybe due to
> that MAMP htdocs symlink or apache default config ?

 There's a good chance that using a symlink instead of actually
changing httpd.conf's DocumentRoot is causing the issue. Try putting
"RewriteBase /" in your .htaccess file just after "RewriteEngine on".

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


Re: Mac OS developper setup

by luke BAKING barker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I use XAMPP on 10.4 -- it works well, as you just edit the httpd.conf
-- I have multiple document roots, the way I do it, and have different
versions of Cake for each project. Annoying fo rupgrading the version
of Cake, but I generally don't do such massive projects that it
hinders me and I like to be able to quickly switch between the
different projects I do have, by jsut changing the httpd.conf (of
XAMPP Apache == also called MAMPP) DocumentRoot.

I do not know MAMP, but XAMPP/MAMPP has a builtin phpmyadmin and you
can switch between php4 and 5 with a single command. It is pretty
sweet.

I use Textmate to edit and CocoaMySQL for the db. Both work well in a
Cake context. currently preparing Leopard Subversion server and will
prbably rethink the way I run off Cake and try and just use one SVN
updateable latest nightly of Cake  to run all my apps.

Luke



On Feb 5, 9:10 am, boyracerr <benjamins...@...> wrote:

> I use MAMP for my PHP5, and the standard Apache that comes with the
> Mac plus a selfcompiled PHP for PHP4. They seem to live quite happily
> together. I have had some problems before, but got things working
> (with the exception of Jake, which is another story).
>
> What problem are you having? Any error message?
>
> Ben
>
> On Feb 5, 9:47 am, zeugme <zeu...@...> wrote:
>
>
>
> > Hi,
>
> > I'm wondering what kind of software setup are you using on Mac OS as a
> > developper machine ?
>
> > I'm using MAMP for the Apache, PHP, MySQL stack and IntelliJ for  code
> > edition.
>
> > I created a symlink from MAMP htdocs to my dev web folder.
>
> > I'm not sure but I think I might have a mod_rewrite issue, maybe due to
> > that MAMP htdocs symlink or apache default config ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Mac OS developper setup

by zeugme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


OK, I'm totally blocked on that issue now. Is it or not a mod_rewrite
issue ?

Here more details :
If I try that URL in the browser
http://localhost/app/webroot/js/jquery-1.2.2.pack.js
it works fine, I got the javascript.

http://localhost/js/jquery-1.2.2.pack.js
that one doesn't work but that is the helper's result in my layout ... I
can see it with a view source.
of course, nothing is rendered correctly ...

=> it's like webroot is not webroot !

I tried to update .htaccess as suggested without changing DocumentRoot,

I also try to move the DocumentRoot (just one or two clicks with MAMP)
to my web folder.
This would make the DocumentRoot to be the folder c
ontaining /app and /cake (others) and also have a index.php is that right ?


MonkeyGirl wrote:

>> I created a symlink from MAMP htdocs to my dev web folder.
>>
>> I'm not sure but I think I might have a mod_rewrite issue, maybe due to
>> that MAMP htdocs symlink or apache default config ?
>>    
>
>  There's a good chance that using a symlink instead of actually
> changing httpd.conf's DocumentRoot is causing the issue. Try putting
> "RewriteBase /" in your .htaccess file just after "RewriteEngine on".
>
> Hope that helps,
> Zoe.
> >
>
>  


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


Mac OS developper setup : solution

by zeugme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Problem solved. Here is how :

Beware of the Finder. This application hide hidden file :-)

So, I unziped the cake distrib via zipeg or the zip utility, no problem.
Then, using the Finder, I copy/past all files in my web folder.

All files ? No, not all files. That was the problem.
There is a root .htaccess file that had not been part of the copy/past,
thanks to the Finder.

cp -R is your friend.

Thanks to all !

zeugme wrote:

> OK, I'm totally blocked on that issue now. Is it or not a mod_rewrite
> issue ?
>
> Here more details :
> If I try that URL in the browser
> http://localhost/app/webroot/js/jquery-1.2.2.pack.js
> it works fine, I got the javascript.
>
> http://localhost/js/jquery-1.2.2.pack.js
> that one doesn't work but that is the helper's result in my layout ... I
> can see it with a view source.
> of course, nothing is rendered correctly ...
>
> => it's like webroot is not webroot !
>
> I tried to update .htaccess as suggested without changing DocumentRoot,
>
> I also try to move the DocumentRoot (just one or two clicks with MAMP)
> to my web folder.
> This would make the DocumentRoot to be the folder c
> ontaining /app and /cake (others) and also have a index.php is that right ?
>
>
> MonkeyGirl wrote:
>  
>>> I created a symlink from MAMP htdocs to my dev web folder.
>>>
>>> I'm not sure but I think I might have a mod_rewrite issue, maybe due to
>>> that MAMP htdocs symlink or apache default config ?
>>>    
>>>      
>>  There's a good chance that using a symlink instead of actually
>> changing httpd.conf's DocumentRoot is causing the issue. Try putting
>> "RewriteBase /" in your .htaccess file just after "RewriteEngine on".
>>
>> Hope that helps,
>> Zoe.
>>    
>>  
>>    
>
>
> >
>
>  


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


Re: Mac OS developper setup : solution

by bobx11@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I encountered this same problem, having to go into terminal and do a
cp every time until I found the setting in Finder to allow seeing the
dot files.  Check this out:

http://www.johnnoss.com/2005/12/31/making-finder-show-dot-files-or-stop-showing-them/


On Feb 5, 9:51 am, zeugme <zeu...@...> wrote:

> Problem solved. Here is how :
>
> Beware of the Finder. This application hide hidden file :-)
>
> So, I unziped the cake distrib via zipeg or the zip utility, no problem.
> Then, using the Finder, I copy/past all files in my web folder.
>
> All files ? No, not all files. That was the problem.
> There is a root .htaccess file that had not been part of the copy/past,
> thanks to the Finder.
>
> cp -R is your friend.
>
> Thanks to all !
>
> zeugme wrote:
> > OK, I'm totally blocked on that issue now. Is it or not a mod_rewrite
> > issue ?
>
> > Here more details :
> > If I try that URL in the browser
> >http://localhost/app/webroot/js/jquery-1.2.2.pack.js
> > it works fine, I got the javascript.
>
> >http://localhost/js/jquery-1.2.2.pack.js
> > that one doesn't work but that is the helper's result in my layout ... I
> > can see it with a view source.
> > of course, nothing is rendered correctly ...
>
> > => it's like webroot is not webroot !
>
> > I tried to update .htaccess as suggested without changing DocumentRoot,
>
> > I also try to move the DocumentRoot (just one or two clicks with MAMP)
> > to my web folder.
> > This would make the DocumentRoot to be the folder c
> > ontaining /app and /cake (others) and also have a index.php is that right ?
>
> > MonkeyGirl wrote:
>
> >>> I created a symlink from MAMP htdocs to my dev web folder.
>
> >>> I'm not sure but I think I might have a mod_rewrite issue, maybe due to
> >>> that MAMP htdocs symlink or apache default config ?
>
> >>  There's a good chance that using a symlink instead of actually
> >> changing httpd.conf's DocumentRoot is causing the issue. Try putting
> >> "RewriteBase /" in your .htaccess file just after "RewriteEngine on".
>
> >> Hope that helps,
> >> Zoe.

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


Re: Mac OS developper setup

by Martin Westin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Feb 5, 8:47 am, zeugme <zeu...@...> 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 cake-php@...
To unsubscribe from this group, send email to cake-php-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Mac OS developper setup

by Keith-88 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Zeugme,

I did a tutorial that'll get you up and running quickly if you're on
Leopard.

http://keithmedlin.com/?p=26

Here's what is included:

- Installing MySQL
- Configuring the built in Apache & PHP to handle CakePHP
- Installing CakePHP 1.2
- Configuring your first site in Apache's httpd.conf & Apple's hosts
file
- Setting up your database for a test application
- Baking your first site from the console
- Configuring your database.php file
- Testing your site in a browser to ensure you've done it all
correctly.

I hope it helps and any feedback you have would be great!

On Feb 5, 2:47 am, zeugme <zeu...@...> wrote:

> Hi,
>
> I'm wondering what kind of software setup are you using on Mac OS as a
> developper machine ?
>
> I'm using MAMP for the Apache, PHP, MySQL stack and IntelliJ for  code
> edition.
>
> I created a symlink from MAMP htdocs to my dev web folder.
>
> I'm not sure but I think I might have a mod_rewrite issue, maybe due to
> that MAMP htdocs symlink or apache default config ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---