When the yiiccommand is executed, it indicates that php.exe is not a solution for internal or external commands.

Source: Internet
Author: User
This article mainly introduces the yiiccommand prompt “php.exe "is not a solution for internal or external commands. it is of reference value to solve this problem by configuring environment variables and modifying the configuration file of the Yii Framework, for more information about yiiccommand, see the following document: "php.exe is not a solution for internal or external commands. The specific method is as follows:

Run yiic webapp work in CMD. if "php.exe" is not an internal command, it is like this: the original cause is that yiic.bat' with yii' cannot find php.exe.

Solution:

Php.exe cannot be executed directly due to lack of environment changes.

Right-click "my computer-" properties-"advanced-> environment variables-" system variables-"PATH-" edit "and add the following two execution files to the variable value, convenient and direct invocation.

Variable value: C: \ wamps \ bin \ php \ php5.3.8 \; E: \ php \ PHPnow \ htdocs \ yii \ framework \

Method 2:
This problem occurs because the yiic. bat of Yii cannot be found in php.exe. Therefore, you can use a text editor to open yii/framework/yiic. bat and modify it:

The code is as follows:

If "% PHP_COMMAND %" = "" set PHP_COMMAND = php.exe

Changed:

The code is as follows:

If "% PHP_COMMAND %" = "" set PHP_COMMAND = D: \ wamp \ bin \ php \ php5.3.10 \ php.exe

Then run yiic webapp work again in CMD.

I hope this article will help you design PHP programs based on the Yii Framework.

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.