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.
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...
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.
According to this article. You can run bake command.
- Open
Computer
under your Windows Start menu.
- Right-click the
Computer
window, and select Properties
.
- 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.
- Select the
Advanced
tab on the System Properties window.
- Click the
Environment Variables…
button.
- In the System Variables box, find the
Path
variable and click Edit…
.
- If there isn’t one already, add a semicolon to the end of the current
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)