how to bake on windows xampp environment

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!

Advertisements
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

20 thoughts on “how to bake on windows xampp environment

  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

    • 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.

  2. 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.

  3. 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?

  4. Hi,

    It did worked for me. Thanks for me. Nice tutorial.

    I just would like to know how to bake without having to copy the cakephp project inside Xampp.

    I have Xampp here C:\xampp.

    I have my projects here C:\@SimonJPA.

    How can I use bake without copying all the cakephp projects inside Xampp?

    Regards,

  5. i’m using windows 7 (32 bit)

    when i tried to follow the steps it is saying that c:/xampp/php>php.exe is not a valid win 32 application…

    how can i resolve the above problem…?please help me..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s