Re: Cake NooB trying to install on MAMP

2012-03-19 Thread YannDMX
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: 

**
*   RewriteEngine on*
*   RewriteRule^$ app/webroot/[L]*
*   RewriteRule(.*) app/webroot/$1 [L]*
**

in app Directory

**
*RewriteEngine on*
*RewriteRule^$webroot/[L]*
*RewriteRule(.*) webroot/$1[L]*
**

in webroot directory

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

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


Re: Cake NooB trying to install on MAMP

2012-03-14 Thread luca capra

In case you access your app with

http://localhost*/myapp*

then

RewriteBase */myapp*

In case try look at server logs, should be somewhere, in my case is
/var/log/apache2/error.log
/var/log/apache2/access.log
(/var/log/apache2/rewrite.log)

Those are always useful

Il 14/03/2012 15:28, timska77 ha scritto:

Thank you for responding. The AllowOverride directive has been set to
All. Neither of the RewriteBase entries worked but I may not be
understanding "your-cake-subdir", where should the path be starting?

On Mar 14, 4:04 am, luca capra  wrote:

If you are on a virtual host try adding

RewriteBase /
#or
RewriteBase /your-cake-subdir

in ROOT/.htaccess or ROOT/app/webroot/.htaccess
Either check your apache host config for

AllowOverride All

directive

Il 13/03/2012 21:52, timska77 ha scritto:


Hello, I'm trying to install Cake 2.1 on MAMP 2.01, running Apache
2.2.17 and PHP 5.3.6. Been searching and trying everything I can but
I'm having trouble getting Cake set up, I have Zend working ok so I'm
not totally clueless, but I'm not super skilled at setting up servers
so I hope someone can help. I've got two large, scathing error
messages on the Cake start page:
Error:  The action webroot is not defined in controller AppController
Error:  Create AppController::webroot() in file: app/Controller/
AppController.php.
These are followed by:


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


Re: Cake NooB trying to install on MAMP

2012-03-14 Thread timska77
Thank you for responding. The AllowOverride directive has been set to
All. Neither of the RewriteBase entries worked but I may not be
understanding "your-cake-subdir", where should the path be starting?

On Mar 14, 4:04 am, luca capra  wrote:
> If you are on a virtual host try adding
>
> RewriteBase /
> #or
> RewriteBase /your-cake-subdir
>
> in ROOT/.htaccess or ROOT/app/webroot/.htaccess
> Either check your apache host config for
>
> AllowOverride All
>
> directive
>
> Il 13/03/2012 21:52, timska77 ha scritto:
>
> > Hello, I'm trying to install Cake 2.1 on MAMP 2.01, running Apache
> > 2.2.17 and PHP 5.3.6. Been searching and trying everything I can but
> > I'm having trouble getting Cake set up, I have Zend working ok so I'm
> > not totally clueless, but I'm not super skilled at setting up servers
> > so I hope someone can help. I've got two large, scathing error
> > messages on the Cake start page:
>
> > Error:  The action webroot is not defined in controller AppController
>
> > Error:  Create AppController::webroot() in file: app/Controller/
> > AppController.php.
>
> > These are followed by:
>
> >  > class AppController extends AppController {
>
> >    public function webroot() {
>
> >    }
>
> > }
>
> > Any related posts seem to point to mod_rewrites being disabled but I
> > have a Drupal install on the same MAMP install and rewrites are
> > working there just fine there, and all of the htaccess files are where
> > they're supposed to be in the Cake directory/subdirectories. Does
> > anyone have any suggestions? Thanks in advance for any help or advice!

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


Re: Cake NooB trying to install on MAMP

2012-03-14 Thread luca capra

If you are on a virtual host try adding

RewriteBase /
#or
RewriteBase /your-cake-subdir

in ROOT/.htaccess or ROOT/app/webroot/.htaccess
Either check your apache host config for

AllowOverride All

directive

Il 13/03/2012 21:52, timska77 ha scritto:

Hello, I'm trying to install Cake 2.1 on MAMP 2.01, running Apache
2.2.17 and PHP 5.3.6. Been searching and trying everything I can but
I'm having trouble getting Cake set up, I have Zend working ok so I'm
not totally clueless, but I'm not super skilled at setting up servers
so I hope someone can help. I've got two large, scathing error
messages on the Cake start page:

Error:  The action webroot is not defined in controller AppController

Error:  Create AppController::webroot() in file: app/Controller/
AppController.php.

These are followed by:



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


Cake NooB trying to install on MAMP

2012-03-13 Thread timska77
Hello, I'm trying to install Cake 2.1 on MAMP 2.01, running Apache
2.2.17 and PHP 5.3.6. Been searching and trying everything I can but
I'm having trouble getting Cake set up, I have Zend working ok so I'm
not totally clueless, but I'm not super skilled at setting up servers
so I hope someone can help. I've got two large, scathing error
messages on the Cake start page:

Error:  The action webroot is not defined in controller AppController

Error:  Create AppController::webroot() in file: app/Controller/
AppController.php.

These are followed by:

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