When the yiiccommand is executed, the prompt "php.exe" is not an internal or external command solution.

Source: Internet
Author: User


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 ):

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.