Home  >  Article  >  Backend Development  >  The solution to the problem that "php.exe" is not an internal or external command when using the yiic command, yiicphp.exe_PHP tutorial

The solution to the problem that "php.exe" is not an internal or external command when using the yiic command, yiicphp.exe_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:11:22874browse

The solution to the problem that "php.exe" is not an internal or external command when using the yiic command, yiicphp.exe

The example in this article describes the solution to the problem that "php.exe" is not an internal or external command when using the yiic command. It is shared with everyone for your reference. The specific method is as follows:

Run yiic webapp work in CMD. If the report "php.exe" is not an internal command, it is like this: the reason is that the yiic.bat that comes with Yii cannot find php.exe.

Solution:

Because the environment variable is not added, php.exe cannot be executed directly.

Right-click "My Computer-"Properties-"Advanced-"Environment Variables-"System Variables-"PATH-"Edit" and add the following 2 executable files to the variable value to facilitate direct call execution.

Variable value: C:wampsbinphpphp5.3.8;E:phpPHPnowhtdocsyiiframework

Method 2:
The reason for this problem is that the yiic.bat that comes with Yii cannot find php.exe, so you can use a text editor to open yii/framework/yiic.bat and modify it:

Copy code The code is as follows:
if "%PHP_COMMAND%" == "" set PHP_COMMAND= php.exe

Change to:

Copy code The code is as follows:
if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:wampbinphpphp5.3.10 php.exe

Then re-run yiic webapp work in CMD and it will be ok.

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/929677.htmlTechArticleThe solution to the problem that "php.exe" is not an internal or external command when using the yiic command, yiicphp.exe is described in this article. The solution to the problem that "php.exe" is not an internal or external command when using the yiic command...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn