It's All About Me

make them benefit

how to bake on windows xampp environment

with 8 comments

Just a small note about the command that we need to run to bake cakephp in windows, xampp environment. Here is this

> start the command promt
> go to php folder,
>run the following command to start baking

php.exe C:/xampp/htdocs/cakeblog/cake/console/cake.php bake

where “C:/xampp/htdocs/cakeblog/cake/console/cake.php” is the path of bake file.

Have Baking!

Written by kodegeek

June 13, 2009 at 1:09 pm

Posted in CakePhp

Tagged with

8 Responses

Subscribe to comments with RSS.

  1. I am using WAMP and I tried out your solution and it gave me the following error any ideas about it?

    Thanks
    Junaid Arif

    Fatal error: Cannot access empty property in c:\wamp\www\mysite\cake\console\libs\bake.php on line 52

    Junaid Arif

    June 16, 2009 at 3:42 am

    • I’ve tried it in wampserver 2.0 which works fine for me. From command promt, just follow the steps bellow

      1. Go to command promt

      C:\Documents and Settings\Abu Musa>cd\

      2. Change your location to php path

      C:\>cd C:\wamp\bin\php\php5.2.9-2

      3 Start bake

      C:\wamp\bin\php\php5.2.9-2>php.exe C:/wamp/www/cakephp/cake/console/cake.php bake

      Then you will see the following screen if you are successfull.

      Welcome to CakePHP v1.2.1.8004 Console
      —————————————————————
      App : app
      Path: C:/wamp/www/cakephp/app
      —————————————————————
      Interactive Bake Shell
      —————————————————————
      [D]atabase Configuration
      [M]odel
      [V]iew
      [C]ontroller
      [P]roject
      [Q]uit
      What would you like to Bake? (D/M/V/C/P/Q)
      >

      That’s it.

      kodegeek

      June 16, 2009 at 6:51 am

  2. thank you very much, i have 2 days that i wanna resolve this problem ;)

    HaYsSeN

    June 24, 2009 at 11:34 pm

  3. Thanks a lot for making this blog post. I’m reading a book that totally left us windows guys in the dark.

    I got this error:

    PHP.exe Unable to locate component
    This application has failed to start because php_mbstring.dll was not found. Re-installing the application may fix this problem

    But once you hit ok to acknowledge the error it continues loading and bring you to the Interactive Bake Shell.

    Jon Lyles

    September 29, 2009 at 11:13 pm

    • Hi Jon Lyles,
      It seems, some of php component is missing. Are you using xampp? If no, get a copy from here http://www.apachefriends.org/en/xampp.html and follow the steps above. If yes, Re-installing should solve your problem.

      Thanks

      kodegeek

      September 30, 2009 at 11:09 am

  4. I tried this out and now every time I run cake bake it asks if I want to copy a template over , every single time. Is there any way to get rid of this?

    tg2345

    October 30, 2009 at 5:36 am

    • Sorry tg2345, no idea :(

      kodegeek

      October 30, 2009 at 11:21 am


Leave a Reply