Domas
Domas

Reputation: 1133

Cannot get the cakephp 2.3 console running on xampp on Windows 7

I am running a cakePHP app which is located in C:xammp\htdocs\scheduling. I am running it on xampp on Windows 7. I have added the following environment variables:

C:\xampp\htdocs\scheduling\app\Console\;C:\xampp\php;

but still cannot get the cakephp console in operation. When I navigate to C:\xampp\htdocs\scheduling\app and try to get the cake console or cake help, I am given a message that it is not recognized as an internal or external command.

And yes, I did reload the cmd after adding the environment variables.

Upvotes: 0

Views: 847

Answers (2)

Manjeet Singh
Manjeet Singh

Reputation: 48

Its Easy just follow the steps as mentioned below:

  1. put Your PHP Path in environment Variable
  2. Open Command Prompt with Admin priviliges
  3. change directory to C:\xampp\htdocs\your_appname\app\console
  4. Type in " Cake Bake " and run

And You Are ready to go...................Happy Baking...........................

Upvotes: 1

Oldskool
Oldskool

Reputation: 34837

Just reloading the cmd is not enough, you need to either reboot your system or add it once manually before you are ready to reboot:

set Path="%Path%;c:\xampp\htdocs\scheduling\app\Console"

If all else fails, you can always call it in full from your app dir:

Console\cake bake

It's a little bit more typing, but this will work regardless of the Path variable settings.

Upvotes: 0

Related Questions