Reputation: 8919
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.
Upvotes: 4
Views: 5173
Reputation: 5136
According to this article. You can run bake command.
Computer
under your Windows Start menu.Computer
window, and select Properties
.Advanced System Settings
, which you can select from the left column menu in this window.Advanced
tab on the System Properties window.Environment Variables…
button.Path
variable and click Edit…
.Path
variable (a semicolon is used to separate variables).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)
Upvotes: 1
Reputation: 21743
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.
Upvotes: 1
Reputation: 1539
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...
Upvotes: 2