4
votes

I want to bake cake php project on Windows system. I'm using wamp server for PHP mysql. I've gone through the video casting on the cakephp site. And did set up the environment setup.

After giving command "cake" as per the demo,Finally I got a message saying

'php' is not recognized as internal or external command. operable program or batch file.

Please help me in baking cake php 2.0 project in Windows system.

3

3 Answers

2
votes

You need to put the path to the php.exe into your system variables.

Right-click on "My Computer" --> Properties --> Advanced System Settings --> Environment Variables --> path var

Btw: Please, raise your aceept rate...

1
votes

see my answer on this post: Cakephp 2.1 naming convensions issue in version change

using the explicit path via shortcut is the fastest method and doesnt need any configuration.

1
votes

According to this article. You can run bake command.

  1. Open Computer under your Windows Start menu.

  2. Right-click the Computer window, and select Properties.

  3. You will be brought to the Control Panel’s System window. We’ll need to change our environment variables under Advanced System Settings, which you can select from the left column menu in this window.

  4. Select the Advancedtab on the System Properties window.

  5. Click the Environment Variables… button.

  6. In the System Variables box, find the Path variable and click Edit….

  7. If there isn’t one already, add a semicolon to the end of the current Path variable (a semicolon is used to separate variables).

  8. At the end of your Path variable add

    c:\wamp\bin\php\php5.3.8\;c:\wamp\www\order_system\app\Console\;

    And click OK to save your changes.

(The first path should point to your installation of PHP, and second variable should point to the app\Console location of the project that you are developing)