Monday, March 19, 2012

Re: Cake NooB trying to install on MAMP

I had same matter on my macbook pro why i first install cakephp 2.1 with MAMP

When you unzip cakephp 2.1, .htaccess files aren't copy in directories...
you should see 3 different  .htaccess in the root of cakephp, another in app and the third in webroot...

You need to show hidden files in the finder to see these.

You can use FokLift which allows to see hideen files with the view menu

Don't forget that these 3 .htaccess are different :

in the root of CakePHP: 

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

in app Directory

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
</IfModule>

in webroot directory

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>

I spend too 1 hour to understand why CakePhp won't run on my MAMP ...

Hope this help

Yannick
(France)

 






--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: