Home >PHP Framework >YII >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!