Run yiic webapp work in CMD. If 'php.exe 'is not an internal command
The reason is that the yiic.batwith yiiib cannot find php.exe.
Solution:
Php.exe cannot be executed directly because it has not been added to environment changes
Right-click "my computer-" properties-"advanced"> "environment variables"-"system variables"-"PATH-" edit"
Add the following two execution files to the variable value to facilitate direct invocation.
Variable value: C: \ wamps \ bin \ php \ php5.3.8 \; E: \ php \ PHPnow \ htdocs \ yii \ framework \
Or:
The reason is that the yiic. bat of Yii cannot be found in php.exe.
Open yii/framework/yiic. bat in a text editor to modify
If "% PHP_COMMAND %" = "" set PHP_COMMAND = php.exe
Change
If "% PHP_COMMAND %" = "" set PHP_COMMAND = D: \ wamp \ bin \ php \ php5.3.10 \ php.exe
Then run yiic webapp work again in CMD!
As shown in the following figure (success ):