Home  >  Article  >  PHP Framework  >  yii reports an error when running init.bat

yii reports an error when running init.bat

王林
王林Original
2020-02-18 11:02:342271browse

yii reports an error when running init.bat

Problem:

When running init.bat of yii2.0.6, it prompts that "php.exe" is not an internal or external command.

Solution:

(Related tutorial recommendation: yii framework)

Open init.bat with a text editor to modify

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

Change to

if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\xampp\php\php.exe(填写你自己php.exe的实际路径)

Then run it again in CMD and it will be ok!

For more programming-related content, please visit the Introduction to Programming column on the php Chinese website!

The above is the detailed content of yii reports an error when running init.bat. For more information, please follow other related articles on the PHP Chinese website!

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