php.exe is not recognized


Posting this here as apparently I need to add a forum post in order to add a comment to the docs.

If you get the error

php.exe is not recognized as an internal or external command

When you try to create the new framework then you need to add php.exe’s location to your system path.

On Windows XP goto

Control Panel > System > Advanced > Environment Variables > System Variables > Edit > Variable value

And at the end of the current contents add a semicolon followed by your path to php.

EG, mine is located at

 C:\Program Files\wamp\bin\php\php5.2.9-2

make sure your environment variable configure correctly

open command prompt…

go to your server root path (www)

type as below (modify as your own way…)

-> [color="#1C2837"][size="2"]php c:\wamp\framework\yiic.php webapp c:\wamp\www\myapp[/size][/color]

you can direct find php.exe

activate to php directory :

cd C:\Program Files\wamp\bin\php\php5.2.9-2

generate yiic :

C:\Program Files\wamp\bin\php\php5.2.9-2>php.exe C:\Program Files\wamp\my_yii_framework_location\framework\yiic webapp C:\Program Files\wamp\www\my_app_name


easly, you can use xampp and netbeans editor just follow the wizard